Debian Codegraph @

src/test/06-Errors/error-depend-class-var.ck

raw
1 // within class definition of Foo, class member 'myVal' is used before declaration
2
3 // class definition
4 class Foo
5 {
6 // no work -- depends on myVal being initialized
7 <<< myVal >>>;
8
9 // the dependency
10 5 => int myVal;
11 }
12
13 // should have error'ed out by this point
14 Foo foo;
15