Skip to content

Commit

Permalink
sema: fix comparing of function types
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 20, 2024
1 parent 2431c1d commit 23903c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/jule/sema/fn.jule
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ impl Kind for FnIns {
ret p1.kind.equals(p2.kind)
}

if f.params.len != self.params.len {
ret false
}

i = 0
for i < self.params.len; i++ {
if !check_params(self.params[i], f.params[i]) {
Expand Down

0 comments on commit 23903c3

Please sign in to comment.