Don't inherit metaclasses.
Also disallow super() in static methods. It won't do anything useful (it always just delegates to Class) anyway.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
static method {
|
||||
super // expect error
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user