Hello everyone!
I have a simple code where i return an attribute of a class:
function getFont(f) { if (mCurrentFontIdx != f || mFont == null) { // free memory used by prev cached font mFont = null; mFont = WatchUi.loadResource(mFontList[f]); mCurrentFontIdx = f; } return mFont; }
ERA reports two errors on "return" statement:
- Symbol Not Found Error
- Too Many Arguments Error
I can't reproduce it on my device and in simulator.
What could it be and how to fix/workaround it?