2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/augmentedTypesClass2a.ts(2,7): error TS2300: Duplicate identifier 'c2'.
|
2014-10-01 20:27:20 +02:00
|
|
|
tests/cases/compiler/augmentedTypesClass2a.ts(3,10): error TS2300: Duplicate identifier 'c2'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/augmentedTypesClass2a.ts(4,5): error TS2300: Duplicate identifier 'c2'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/augmentedTypesClass2a.ts (3 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
//// class then function
|
2014-10-01 02:15:18 +02:00
|
|
|
class c2 { public foo() { } } // error
|
|
|
|
~~
|
|
|
|
!!! error TS2300: Duplicate identifier 'c2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
function c2() { } // error
|
2014-10-01 20:27:20 +02:00
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'c2'.
|
2014-07-13 01:04:16 +02:00
|
|
|
var c2 = () => { }
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'c2'.
|