I'm getting a confusing error:
ERROR: fenix7: /Users/alansmith/Documents/watchApp/raceQs/source-bigMem/speedHeadingBIG.mc:890,8: Invalid '$.Toybox.Lang.Method(response as Any, weatherObj as Any) as Any' passed as parameter 4 of type 'PolyType<(callback(responseCode as $.Toybox.Lang.Number, data as Null or $.Toybox.Lang.Dictionary or $.Toybox.Lang.String) as Void) or (callback(responseCode as $.Toybox.Lang.Number, data as Null or $.Toybox.Lang.Dictionary or $.Toybox.Lang.String, context as $.Toybox.Lang.Object) as Void)>'.
on:
Comm.makeWebRequest( url, null, { :headers => headers, :method => Comm.HTTP_REQUEST_METHOD_GET, :responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_JSON }, method(:receiveMagVars) ) ;
Which runs fine with 4.1.3.
4.1.4 Beta has thrown up a whole bunch (90-odd!) of errors which I'm working through. Some are interesting, but I'm disappointed that it refuses to accept Numbers as Identifier in Menu.addItem. That a symbol is required seems to be a crazy fault in the language specification that has not until now been required. Prior compilers have not had a problem and this code
s_menu_layer.addItem(loadedMarks[i][$.name], i );
has worked fine, and I assumed that it was a documentation error.