SDK 8.1.0, simulator fr955 (it doesn't mean it work on real device, it just means I haven't tried it)
module MyModule { var foo as Number = 0; function bar() as Void { foo = foo + 1; } } MyModule.bar();
Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
Encountered app crash.
It crashes so hard it's not even able to produce the stack trace!
See from 2016: https://forums.garmin.com/developer/connect-iq/f/discussion/4287/symbol-not-found-error-when-using-module-level-variables/