2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/collisionSuperAndLocalVarInProperty.ts (1 errors) ====
|
|
|
|
var _super = 10; // No Error
|
|
|
|
class Foo {
|
|
|
|
public prop1 = {
|
|
|
|
doStuff: () => {
|
|
|
|
var _super = 10; // No error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public _super = 10; // No error
|
|
|
|
}
|
|
|
|
class b extends Foo {
|
|
|
|
public prop2 = {
|
|
|
|
doStuff: () => {
|
|
|
|
var _super = 10; // Should be error
|
2014-07-19 02:30:06 +02:00
|
|
|
~~~~~~
|
2014-07-13 01:04:16 +02:00
|
|
|
!!! Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public _super = 10; // No error
|
|
|
|
}
|