mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Tests covering the bug
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineNew.ts(1,2): error TS2304: Cannot find name 'a'.
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineNew.ts(1,2): error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineNew.ts(2,4): error TS1109: Expression expected.
|
||||
|
||||
|
||||
==== tests/cases/compiler/parseCommaSeperatedNewlineNew.ts (3 errors) ====
|
||||
(a,
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'a'.
|
||||
~
|
||||
!!! error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
new)
|
||||
~
|
||||
!!! error TS1109: Expression expected.
|
||||
@@ -0,0 +1,7 @@
|
||||
//// [parseCommaSeperatedNewlineNew.ts]
|
||||
(a,
|
||||
new)
|
||||
|
||||
//// [parseCommaSeperatedNewlineNew.js]
|
||||
(a,
|
||||
new );
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineNumber.ts(1,2): error TS2304: Cannot find name 'a'.
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineNumber.ts(1,2): error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
|
||||
|
||||
==== tests/cases/compiler/parseCommaSeperatedNewlineNumber.ts (2 errors) ====
|
||||
(a,
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'a'.
|
||||
~
|
||||
!!! error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
1)
|
||||
@@ -0,0 +1,7 @@
|
||||
//// [parseCommaSeperatedNewlineNumber.ts]
|
||||
(a,
|
||||
1)
|
||||
|
||||
//// [parseCommaSeperatedNewlineNumber.js]
|
||||
(a,
|
||||
1);
|
||||
@@ -0,0 +1,11 @@
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineString.ts(1,2): error TS2304: Cannot find name 'a'.
|
||||
tests/cases/compiler/parseCommaSeperatedNewlineString.ts(1,2): error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
|
||||
|
||||
==== tests/cases/compiler/parseCommaSeperatedNewlineString.ts (2 errors) ====
|
||||
(a,
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'a'.
|
||||
~
|
||||
!!! error TS2695: Left side of comma operator is unused and has no side effects.
|
||||
'')
|
||||
@@ -0,0 +1,7 @@
|
||||
//// [parseCommaSeperatedNewlineString.ts]
|
||||
(a,
|
||||
'')
|
||||
|
||||
//// [parseCommaSeperatedNewlineString.js]
|
||||
(a,
|
||||
'');
|
||||
2
tests/cases/compiler/parseCommaSeperatedNewlineNew.ts
Normal file
2
tests/cases/compiler/parseCommaSeperatedNewlineNew.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
(a,
|
||||
new)
|
||||
2
tests/cases/compiler/parseCommaSeperatedNewlineNumber.ts
Normal file
2
tests/cases/compiler/parseCommaSeperatedNewlineNumber.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
(a,
|
||||
1)
|
||||
2
tests/cases/compiler/parseCommaSeperatedNewlineString.ts
Normal file
2
tests/cases/compiler/parseCommaSeperatedNewlineString.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
(a,
|
||||
'')
|
||||
Reference in New Issue
Block a user