knox
knox copied to clipboard
Members references without Self cause C errors
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!
}
}```