TypeScript/tests/baselines/reference/functionCall15.errors.txt

10 lines
460 B
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/compiler/functionCall15.ts(1,25): error TS2300: Duplicate identifier 'b'.
2014-10-01 20:27:20 +02:00
tests/cases/compiler/functionCall15.ts(1,39): error TS2300: Duplicate identifier 'b'.
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/functionCall15.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
function foo(a?:string, b?:number, ...b:number[]){}
2014-10-01 02:15:18 +02:00
~
!!! error TS2300: Duplicate identifier 'b'.
2014-10-01 20:27:20 +02:00
~
!!! error TS2300: Duplicate identifier 'b'.