Closed Vitalii-1996 closed 2 months ago
The current example is rising the Type mismatch: Int is not assignable to <void> error during the compilation. Condsider adding the type of return value: extends fun pow(self: Int, c: Int): Int {
Type mismatch: Int is not assignable to <void>
extends fun pow(self: Int, c: Int): Int {
Thanks for reporting it @Vitalii-1996!
@novusnota We really need to run all the examples through the Tact typechecker at least (cf #157)
The current example is rising the
Type mismatch: Int is not assignable to <void>
error during the compilation. Condsider adding the type of return value:extends fun pow(self: Int, c: Int): Int {