TypeScript/tests/baselines/reference/declInput.errors.txt
2014-09-12 13:35:07 -07:00

16 lines
No EOL
427 B
Text

tests/cases/compiler/declInput.ts(5,7): error TS2300: Duplicate identifier 'bar'.
==== tests/cases/compiler/declInput.ts (1 errors) ====
interface bar {
}
class bar {
~~~
!!! error TS2300: Duplicate identifier 'bar'.
public f() { return ''; }
public g() { return {a: <bar>null, b: undefined, c: void 4 }; }
public h(x = 4, y = null, z = '') { x++; }
}