Under Review
over 2 years ago

SDK 4.2.0 Beta 1 won't compile AppBase.getProperty

Given

  return Application.getApp().getProperty(s);
The compiler reports
  ERROR: fr235: test.mc: '$.Toybox.Application.AppBase.getProperty' is deprecated.
But fr235 doesn't support Application.Properties.getValue, so I *have* to use getProperty when compiling for fr235.
Parents
  • Now I know its type checker related, I can work around this by putting (:typecheck(false)) on the affected method. The method already uses exclude annotations so its only used for devices that actually need it, so thats not too bad.

    But conflating deprecation error level with type check level still seems like a big mistake.

Comment
  • Now I know its type checker related, I can work around this by putting (:typecheck(false)) on the affected method. The method already uses exclude annotations so its only used for devices that actually need it, so thats not too bad.

    But conflating deprecation error level with type check level still seems like a big mistake.

Children
No Data