Debian Codegraph @

src/test/06-Errors/error-static-init-member-f.ck

raw
1 // error test: calling member function in static initialization
2 // #2024-static-init
3
4 // a class
5 class Foo
6 {
7 // ERROR calling member function to initialize static var
8 foo() => static int THE_NUM;
9
10 // member function
11 fun int foo() { return 5; }
12 }
13