mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
542 B
Diff
16 lines
542 B
Diff
--- old.YieldExpression2_es6.errors.txt
|
|
+++ new.YieldExpression2_es6.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
YieldExpression2_es6.ts(1,1): error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
-
|
|
-
|
|
-==== YieldExpression2_es6.ts (1 errors) ====
|
|
+YieldExpression2_es6.ts(1,7): error TS2304: Cannot find name 'foo'.
|
|
+
|
|
+
|
|
+==== YieldExpression2_es6.ts (2 errors) ====
|
|
yield foo;
|
|
~~~~~
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
+ ~~~
|
|
+!!! error TS2304: Cannot find name 'foo'.
|