tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
41 stars 36 forks source link

`book/functions` add return value type to the example in the `Extension function` section #196

Closed Vitalii-1996 closed 2 months ago

Vitalii-1996 commented 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 {

anton-trunov commented 2 months ago

Thanks for reporting it @Vitalii-1996!

@novusnota We really need to run all the examples through the Tact typechecker at least (cf #157)