TypeScript/tests/baselines/reference/fatarrowfunctionsOptionalArgsErrors2.errors.txt
2014-07-12 17:30:19 -07:00

39 lines
1.1 KiB
Plaintext

==== tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts (17 errors) ====
var tt1 = (a, (b, c)) => a+b+c;
~~
!!! ';' expected.
~
!!! Cannot find name 'a'.
~
!!! Cannot find name 'b'.
~
!!! Cannot find name 'c'.
~
!!! Cannot find name 'a'.
~
!!! Cannot find name 'b'.
~
!!! Cannot find name 'c'.
var tt2 = ((a), b, c) => a+b+c;
~~
!!! ';' expected.
~
!!! Cannot find name 'a'.
~
!!! Cannot find name 'b'.
~
!!! Cannot find name 'c'.
~
!!! Cannot find name 'a'.
~
!!! Cannot find name 'b'.
~
!!! Cannot find name 'c'.
var tt3 = ((a)) => a;
~~
!!! ';' expected.
~
!!! Cannot find name 'a'.
~
!!! Cannot find name 'a'.