class Base { foo() { super.doesNotExist; // Error at 'super': Can't use 'super' in a class with no superclass. } } Base().foo();