☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
06-Errors
/
error-dtor-access.ck
☽
☼
src/test/06-Errors/error-dtor-access.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
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;