1 2 3 4 5 6 7
class Foo { static methodOnFoo { System.print("foo") } } class Bar is Foo {} Bar.methodOnFoo // expect runtime error: Bar metaclass does not implement 'methodOnFoo'.