2015-03-11 01:59:16 +01:00
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(2,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(4,7): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(6,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(8,7): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(10,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(12,7): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(14,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(16,7): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(20,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(22,5): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(27,13): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(31,13): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(36,13): error TS1200: Line terminator not permitted before arrow.
|
|
|
|
tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts(40,9): error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
|
|
|
|
|
2015-03-10 22:20:28 +01:00
|
|
|
==== tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts (14 errors) ====
|
2015-03-10 03:51:23 +01:00
|
|
|
var f1 = ()
|
|
|
|
=> { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f2 = (x: string, y: string) /*
|
|
|
|
*/ => { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f3 = (x: string, y: number, ...rest)
|
|
|
|
=> { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f4 = (x: string, y: number, ...rest) /*
|
|
|
|
*/ => { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f5 = (...rest)
|
|
|
|
=> { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f6 = (...rest) /*
|
|
|
|
*/ => { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f7 = (x: string, y: number, z = 10)
|
|
|
|
=> { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
var f8 = (x: string, y: number, z = 10) /*
|
|
|
|
*/ => { }
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
|
|
|
|
function foo(func: () => boolean) { }
|
|
|
|
foo(()
|
2015-03-10 22:11:25 +01:00
|
|
|
=> true);
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 03:51:23 +01:00
|
|
|
foo(()
|
2015-03-10 22:11:25 +01:00
|
|
|
=> { return false; });
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:11:25 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
2015-03-10 22:20:28 +01:00
|
|
|
|
|
|
|
module m {
|
|
|
|
class City {
|
|
|
|
constructor(x: number, thing = ()
|
|
|
|
=> 100) {
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:20:28 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
|
|
|
}
|
|
|
|
|
|
|
|
public m = ()
|
|
|
|
=> 2 * 2 * 2
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:20:28 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum Enum {
|
|
|
|
claw = (()
|
|
|
|
=> 10)()
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:20:28 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
|
|
|
}
|
|
|
|
|
|
|
|
export var v = x
|
|
|
|
=> new City(Enum.claw);
|
2015-03-11 01:59:16 +01:00
|
|
|
~~
|
2015-03-10 22:20:28 +01:00
|
|
|
!!! error TS1200: Line terminator not permitted before arrow.
|
|
|
|
}
|
2015-03-10 03:51:23 +01:00
|
|
|
|