Acknowledged

bug: self.foo behaves different from foo in regards of null check with strict type checker

The following code doesn't compile with SDK 7.2.1 with type check = strict:

import Toybox.Application;
import Toybox.Lang;
import Toybox.WatchUi;

class TestApp extends Application.AppBase {
    public var foo as Number?;

    function initialize() {
        AppBase.initialize();
    }

    public function bar() as Void {
        if (self.foo != null) {
            // this doesn't compile
            self.foo.compareTo(3);
        }

        if (foo != null) {
            // this does compile
            foo.compareTo(3);
        }
    }
}