Skip to content

Commit dcbaee9

Browse files
committed
fix: allowed structs to hold type parameters
1 parent d46e717 commit dcbaee9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • compiler/compiler_typing/src

compiler/compiler_typing/src/raw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ impl RawType {
4141
match self {
4242
RawType::Enum(container) => container.type_params.len(),
4343
RawType::EnumEntry(container) => storage.types.vals[container.parent].get_type_params_count(storage),
44+
RawType::Struct(_, container) => container.type_params.len(),
4445

4546
_ => 0
4647
}

0 commit comments

Comments
 (0)