2018-03-31 02:43:37 +02:00
|
|
|
// @target: es5
|
2014-07-13 01:04:16 +02:00
|
|
|
function _super() { // No error
|
|
|
|
}
|
|
|
|
class Foo {
|
|
|
|
get prop1(): number {
|
|
|
|
function _super() { // No error
|
|
|
|
}
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set prop1(val: number) {
|
|
|
|
function _super() { // No error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class b extends Foo {
|
|
|
|
get prop2(): number {
|
|
|
|
function _super() { // Should be error
|
|
|
|
}
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set prop2(val: number) {
|
|
|
|
function _super() { // Should be error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class c extends Foo {
|
|
|
|
get prop2(): number {
|
|
|
|
var x = () => {
|
|
|
|
function _super() { // Should be error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set prop2(val: number) {
|
|
|
|
var x = () => {
|
|
|
|
function _super() { // Should be error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|