mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
785 B
Diff
19 lines
785 B
Diff
--- old.YieldExpression17_es6.errors.txt
|
|
+++ new.YieldExpression17_es6.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
YieldExpression17_es6.ts(1,15): error TS2378: A 'get' accessor must return a value.
|
|
YieldExpression17_es6.ts(1,23): error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
-
|
|
-
|
|
-==== YieldExpression17_es6.ts (2 errors) ====
|
|
+YieldExpression17_es6.ts(1,29): error TS2304: Cannot find name 'foo'.
|
|
+
|
|
+
|
|
+==== YieldExpression17_es6.ts (3 errors) ====
|
|
var v = { get foo() { yield foo; } }
|
|
~~~
|
|
!!! error TS2378: A 'get' accessor must return a value.
|
|
~~~~~
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
+ ~~~
|
|
+!!! error TS2304: Cannot find name 'foo'.
|