1
0
forked from Mirror/wren

Allow super calls in static methods.

This commit is contained in:
Bob Nystrom
2015-09-19 15:19:41 -07:00
parent 19f70b4035
commit 8ef4ea6186
3 changed files with 10 additions and 12 deletions

View File

@ -1,5 +1,8 @@
class Foo {
static method {
super // expect error
static name {
System.print("Foo.name") // expect: Foo.name
System.print(super) // expect: Foo
}
}
Foo.name