Skip to content

Commit

Permalink
sema: fix type comparability analysis reports true for arrays with no…
Browse files Browse the repository at this point in the history
…t-comparable element type
  • Loading branch information
mertcandav committed Sep 7, 2024
1 parent 00efec4 commit 13b9c6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/jule/sema/type.jule
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ impl TypeKind {
if _self.Struct() != nil {
ret _self.Struct().Comparable
}
if _self.Arr() != nil {
ret _self.Arr().Elem.Comparable()
}
ret _self.Map() == nil && _self.Slc() == nil && _self.Fn() == nil
}
}
Expand Down

0 comments on commit 13b9c6c

Please sign in to comment.