You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐞 Describe the bug
There's an error when compiling at line counter = counter+1; that says:
./contracts/main.fc:5:15: error: undefined function `counter+1`, defining a global function of unknown type
counter = counter+1;
^
Compilation error
Func compilation error: ./contracts/main.fc:5:24: error: cannot assign an expression of type ??2 -> ??3 to a variable or pattern of type int: cannot unify type int with ??2 -> ??3
counter = counter+1;
the error can be fixed by adding spaces: counter = counter + 1;
Is this intended behaviour? To me it looks like a bug, because those spaces should not impact the compilation process.
💻 Environment
Node.js v18.16.0 with package "@ton-community/func-js": "^0.7.0",
🐞 Describe the bug
There's an error when compiling at line
counter = counter+1;
that says:the error can be fixed by adding spaces:
counter = counter + 1;
Is this intended behaviour? To me it looks like a bug, because those spaces should not impact the compilation process.
💻 Environment
Node.js v18.16.0 with package "@ton-community/func-js": "^0.7.0",
🔢 Code to reproduce bug
main.fc
compile.ts
The text was updated successfully, but these errors were encountered: