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

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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'.