src/test/06-Errors/error-public-class-ext-var2.ck
raw| 1 | // error verification |
| 2 | // external var access from public class pre-constructor |
| 3 | |
| 4 | // file-level variable |
| 5 | 7 => int foo; |
| 6 | |
| 7 | // public classes can be instantiated from any file |
| 8 | public class X |
| 9 | { |
| 10 | // using an external variable from within a public class |
| 11 | // things gets weird if X is instantiated from another file |
| 12 | <<< foo + 5 >>>; |
| 13 | } |