mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
48 lines
938 B
TypeScript
48 lines
938 B
TypeScript
//// [tests/cases/compiler/collisionSuperAndLocalFunctionInProperty.ts] ////
|
|
|
|
//// [collisionSuperAndLocalFunctionInProperty.ts]
|
|
function _super() { // No error
|
|
}
|
|
class Foo {
|
|
public prop1 = {
|
|
doStuff: () => {
|
|
function _super() { // No error
|
|
}
|
|
}
|
|
}
|
|
}
|
|
class b extends Foo {
|
|
public prop2 = {
|
|
doStuff: () => {
|
|
function _super() { // error
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [collisionSuperAndLocalFunctionInProperty.js]
|
|
"use strict";
|
|
function _super() {
|
|
}
|
|
class Foo {
|
|
constructor() {
|
|
this.prop1 = {
|
|
doStuff: () => {
|
|
function _super() {
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
class b extends Foo {
|
|
constructor() {
|
|
super(...arguments);
|
|
this.prop2 = {
|
|
doStuff: () => {
|
|
function _super() {
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|