Closed lgo closed 6 years ago
Previously, within static methods we would resolve static fields with implicit-this. As it is a static method, there is no implicit-this. For example:
public class A { public static int x = 1; public static int foo() { return x; } }
The x call is not allowed as it is implicitly referencing A there. Instead, it must be used as A.x.
x
A
A.x
+1 test (in typing, not sure if this would impact A2 tests)
Previously, within static methods we would resolve static fields with implicit-this. As it is a static method, there is no implicit-this. For example:
The
x
call is not allowed as it is implicitly referencingA
there. Instead, it must be used asA.x
.+1 test (in typing, not sure if this would impact A2 tests)