Debian Codegraph @

src/test/06-Errors/error-dtor-access.ck

raw
1 // error case: destructors cannot access values outside the class
2
3 int y;
4
5 class Foo
6 {
7 5 => int x;
8
9 fun @destruct()
10 {
11 <<< "destructor called...", y >>>;
12 }
13 }
14
15 Foo foo;