75 lines
No EOL
2.8 KiB
Text
75 lines
No EOL
2.8 KiB
Text
tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts(33,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts(39,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts(49,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts(55,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
|
|
==== tests/cases/conformance/expressions/superPropertyAccess/superPropertyAccessNoError.ts (4 errors) ====
|
|
//super.publicInstanceMemberFunction in constructor of derived class
|
|
//super.publicInstanceMemberFunction in instance member function of derived class
|
|
//super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class
|
|
//super.publicInstanceMemberFunction in lambda in member function
|
|
//super.publicStaticMemberFunction in static member function of derived class
|
|
//super.publicStaticMemberFunction in static member accessor(get and set) of derived class
|
|
|
|
|
|
class SomeBaseClass {
|
|
public func() {
|
|
return '';
|
|
}
|
|
|
|
static func() {
|
|
return 3;
|
|
}
|
|
|
|
}
|
|
|
|
class SomeDerivedClass extends SomeBaseClass {
|
|
constructor() {
|
|
super();
|
|
var x = super.func();
|
|
var x: string;
|
|
}
|
|
|
|
fn() {
|
|
var x = super.func();
|
|
var x: string;
|
|
var y = () => super.func();
|
|
}
|
|
|
|
get a() {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
var x = super.func();
|
|
var x: string;
|
|
return null;
|
|
}
|
|
|
|
set a(n) {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
var x = super.func();
|
|
var x: string;
|
|
}
|
|
|
|
static fn() {
|
|
var x = super.func();
|
|
var x: number;
|
|
}
|
|
|
|
static get a() {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
var x = super.func();
|
|
var x: number;
|
|
return null;
|
|
}
|
|
|
|
static set a(n) {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
var x = super.func();
|
|
var x: number;
|
|
}
|
|
|
|
} |