Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 16, 2024
1 parent 4ba0cf5 commit ae66852
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vlib/v/ast/table.v
Original file line number Diff line number Diff line change
Expand Up @@ -1944,9 +1944,7 @@ pub fn (mut t Table) unwrap_generic_type_ex(typ Type, generic_names []string, co
return new_type(idx).derive_add_muls(typ).clear_flag(.generic)
}
Struct, Interface, SumType {
// alias to generic type needs to be rechecked
// e.g. type Vec4 = vec.Vec4[f64]
if !ts.info.is_generic { // && !(generic_names.len > 0 && recheck_concrete_types) {
if !ts.info.is_generic {
return typ
}
mut t_generic_names := generic_names.clone()
Expand Down

0 comments on commit ae66852

Please sign in to comment.