2015-03-05 03:15:55 +01:00
tests/cases/compiler/collisionSuperAndLocalFunctionInProperty.ts(14,22): error TS2401: Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference.
2014-09-12 22:35:07 +02:00
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/collisionSuperAndLocalFunctionInProperty.ts (1 errors) ====
function _super() { // No error
}
class Foo {
public prop1 = {
doStuff: () => {
function _super() { // No error
}
}
}
}
class b extends Foo {
public prop2 = {
doStuff: () => {
function _super() { // error
2015-03-05 03:15:55 +01:00
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2401: Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference.
2015-03-05 03:15:55 +01:00
}
2014-07-13 01:04:16 +02:00
}
}
}