2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/reassignStaticProp.ts(3,12): error TS2300: Duplicate identifier 'bar'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/reassignStaticProp.ts(5,12): error TS2300: Duplicate identifier 'bar'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/reassignStaticProp.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class foo {
|
|
|
|
|
|
|
|
static bar = 1;
|
2014-10-01 02:15:18 +02:00
|
|
|
~~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'bar'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
static bar:string; // errror - duplicate id
|
2014-10-01 20:27:20 +02:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'bar'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|