TypeScript/tests/baselines/reference/emitThisInSuperMethodCall.errors.txt
2014-07-12 17:30:19 -07:00

34 lines
1 KiB
Plaintext

==== tests/cases/compiler/emitThisInSuperMethodCall.ts (3 errors) ====
class User {
sayHello() {
}
}
class RegisteredUser extends User {
f() {
() => {
function inner() {
super.sayHello();
~~~~~
!!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class
}
};
}
g() {
function inner() {
() => {
super.sayHello();
~~~~~
!!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class
}
}
}
h() {
function inner() {
super.sayHello();
~~~~~
!!! 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class
}
}
}