knox icon indicating copy to clipboard operation
knox copied to clipboard

Members references without Self cause C errors

Open AZHenley opened this issue 6 years ago • 0 comments

class foo {
    var num : int = 0;
    func test1() int {
        return num; // C error! num is not in scope.
    }
    func test2() int {
        return self.num; // OK!
    }
}```

AZHenley avatar May 01 '19 01:05 AZHenley