mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
617 B
Diff
20 lines
617 B
Diff
--- old.YieldExpression12_es6.errors.txt
|
|
+++ new.YieldExpression12_es6.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
YieldExpression12_es6.ts(3,6): error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
-
|
|
-
|
|
-==== YieldExpression12_es6.ts (1 errors) ====
|
|
+YieldExpression12_es6.ts(3,12): error TS2304: Cannot find name 'foo'.
|
|
+
|
|
+
|
|
+==== YieldExpression12_es6.ts (2 errors) ====
|
|
class C {
|
|
constructor() {
|
|
yield foo
|
|
~~~~~
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
+ ~~~
|
|
+!!! error TS2304: Cannot find name 'foo'.
|
|
}
|
|
}
|