fix compilation

This commit is contained in:
DieMyst 2023-10-25 18:12:20 +07:00
parent d6cee82120
commit cbd3d0063f

View File

@ -117,15 +117,15 @@ func bugLNG258_3() -> i8, i8:
ability TestAbWithClosure: ability TestAbWithClosure:
arrow: -> i8 arrow: -> i8
func create(a: i8) -> TestAbWithClosure: func createAb(a: i8) -> TestAbWithClosure:
closureArrow = () -> i8: closureArrow = () -> i8:
<- a <- a
ab = TestAbWithClosure(arrow = closureArrow) ab = TestAbWithClosure(arrow = closureArrow)
<- ab <- ab
func multipleAbilityWithClosure() -> i8, i8: func multipleAbilityWithClosure() -> i8, i8:
ab <- create(1) ab <- createAb(1)
ab2 <- create(2) ab2 <- createAb(2)
<- ab.arrow(), ab2.arrow() <- ab.arrow(), ab2.arrow()