You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/labeledStatementWithLabel.errors.txt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,20 @@
1
+
labeledStatementWithLabel.ts(1,17): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
2
+
labeledStatementWithLabel.ts(2,18): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
3
+
labeledStatementWithLabel.ts(3,23): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
1
4
labeledStatementWithLabel.ts(11,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
2
5
labeledStatementWithLabel.ts(12,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
3
6
4
7
5
-
==== labeledStatementWithLabel.ts (2 errors) ====
8
+
==== labeledStatementWithLabel.ts (5 errors) ====
6
9
label: function fn() { }
10
+
~~
11
+
!!! error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
7
12
label: function* gen() { }
13
+
~~~
14
+
!!! error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
8
15
label: async function gen1() { }
16
+
~~~~
17
+
!!! error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
Copy file name to clipboardExpand all lines: tests/baselines/reference/labeledStatementWithLabel_es2015.errors.txt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,20 @@
1
+
labeledStatementWithLabel_es2015.ts(1,17): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
2
+
labeledStatementWithLabel_es2015.ts(2,18): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
3
+
labeledStatementWithLabel_es2015.ts(3,23): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
1
4
labeledStatementWithLabel_es2015.ts(11,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
2
5
labeledStatementWithLabel_es2015.ts(12,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
Copy file name to clipboardExpand all lines: tests/baselines/reference/labeledStatementWithLabel_strict.errors.txt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
labeledStatementWithLabel_strict.ts(2,1): error TS1344: 'A label is not allowed here.
2
+
labeledStatementWithLabel_strict.ts(2,17): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
2
3
labeledStatementWithLabel_strict.ts(3,1): error TS1344: 'A label is not allowed here.
4
+
labeledStatementWithLabel_strict.ts(3,18): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
3
5
labeledStatementWithLabel_strict.ts(4,1): error TS1344: 'A label is not allowed here.
6
+
labeledStatementWithLabel_strict.ts(4,23): error TS1256: Function declarations are not allowed inside statements. Use a block statement to wrap the function declaration.
4
7
labeledStatementWithLabel_strict.ts(5,1): error TS1344: 'A label is not allowed here.
5
8
labeledStatementWithLabel_strict.ts(6,1): error TS1344: 'A label is not allowed here.
6
9
labeledStatementWithLabel_strict.ts(7,1): error TS1344: 'A label is not allowed here.
@@ -14,17 +17,23 @@ labeledStatementWithLabel_strict.ts(13,8): error TS1235: A namespace declaration
14
17
labeledStatementWithLabel_strict.ts(14,1): error TS1344: 'A label is not allowed here.
0 commit comments