They are compiled as local variables defined in an implicit scope surrounding the class. This has the right semantics and, better, means that there's no VM support needed for them. They're purely syntax sugar.
6 lines
71 B
Plaintext
6 lines
71 B
Plaintext
class Foo {
|
|
static bar {
|
|
fn _field = "wat" // expect error
|
|
}
|
|
}
|