Skip to content

Commit

Permalink
Use StaticType.Equal
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdrag00nv2 committed Sep 6, 2023
1 parent d169d09 commit cf5edc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/interpreter/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -17141,7 +17141,7 @@ func (v *CompositeValue) ConformsToStaticType(
// InclusiveRange is non-covariant.
// For e.g. we disallow assigning InclusiveRange<Int> to an InclusiveRange<Integer>.
// Hence we do an exact equality check instead of a sub-type check.
if fieldStaticType != expectedMemberStaticType {
if !fieldStaticType.Equal(expectedMemberStaticType) {
return false
}

Expand Down

0 comments on commit cf5edc8

Please sign in to comment.