Hi,
I'm having a very weird error and I have no clue of what's going on...
I have this piece of code:
import Toybox.Lang;
using Toybox.Application as App;
using Toybox.Background as Bg;
using Toybox.WatchUi as Ui;
using Toybox.System as Sys;
using Toybox.Time;
using Toybox.Weather;
//typedef Numeric as Number or Float or Long or Double;
//
//
//
var Location as Null or Array<Double> = null;
(:background)
class MyWFApp extends App.AppBase {
var View;
var FieldTypes as Array<Number> = new [6] as Array<Number>;
var MeterTypes as Array<Number> = new [3] as Array<Number>;
public static var HasOWMfield as Array<Boolean> = new [4] as Array<Boolean>;
When I compile with the option '--debug-log-level 2', I get the following error:
"Cannot find symbol ':HasOWMfield' on type 'self'. [Ln 23, Col 1]"
Without the above compiling option, everything works fine (even on the device).
Any Idea?
P.S.: using SDK version 4.1.7 and Type Check Level set to 'Gradual'