Retoor software development Projects Research SearchXNG
Register Sign In

6 lines
68 B
Plaintext
Raw Normal View History

Get static methods fully working. 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.
2014-01-19 22:01:51 +01:00
class Foo {
static bar {
_field = "wat" // expect error
}
}
Reference in New Issue Copy Permalink
9f79dfcdac
wren/test/language/field/in_static_method.wren
Response time: 135ms
Mail Licenses API