Hi,
On a working project, I've just started to get the following error:
Invalid '$.Toybox.Lang.Method(info as Any) as Any' passed as parameter 2 of type '$.Toybox.Lang.Method(loc as $.Toybox.Position.Info) as Void'.
On the following line
Position.enableLocationEvents(Position.LOCATION_ONE_SHOT, method(:onPosition));
With the following function, if it helps
function onPosition(info) { if (info != null) { _location = info.position.toDegrees(); weatherGet(); } }
And lots of other similar messages.... Project has been ok for about 7 years, including a recent move from Eclipse to VSC.
Any ideas?
Thanks
Chris