TypeScript/tests/baselines/reference/augmentedTypesClass2a.errors.txt
2014-09-11 16:11:08 -07:00

9 lines
308 B
Plaintext

==== tests/cases/compiler/augmentedTypesClass2a.ts (2 errors) ====
//// class then function
class c2 { public foo() { } }
function c2() { } // error
~~
!!! error TS2300: Duplicate identifier 'c2'.
var c2 = () => { }
~~
!!! error TS2300: Duplicate identifier 'c2'.