34 lines
1 KiB
Plaintext
34 lines
1 KiB
Plaintext
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck23.ts ===
|
|
class Foo { x: number }
|
|
>Foo : Symbol(Foo, Decl(generatorTypeCheck23.ts, 0, 0))
|
|
>x : Symbol(Foo.x, Decl(generatorTypeCheck23.ts, 0, 11))
|
|
|
|
class Bar extends Foo { y: string }
|
|
>Bar : Symbol(Bar, Decl(generatorTypeCheck23.ts, 0, 23))
|
|
>Foo : Symbol(Foo, Decl(generatorTypeCheck23.ts, 0, 0))
|
|
>y : Symbol(Bar.y, Decl(generatorTypeCheck23.ts, 1, 23))
|
|
|
|
class Baz { z: number }
|
|
>Baz : Symbol(Baz, Decl(generatorTypeCheck23.ts, 1, 35))
|
|
>z : Symbol(Baz.z, Decl(generatorTypeCheck23.ts, 2, 11))
|
|
|
|
function* g3() {
|
|
>g3 : Symbol(g3, Decl(generatorTypeCheck23.ts, 2, 23))
|
|
|
|
yield;
|
|
yield new Foo;
|
|
>Foo : Symbol(Foo, Decl(generatorTypeCheck23.ts, 0, 0))
|
|
|
|
yield new Bar;
|
|
>Bar : Symbol(Bar, Decl(generatorTypeCheck23.ts, 0, 23))
|
|
|
|
yield new Baz;
|
|
>Baz : Symbol(Baz, Decl(generatorTypeCheck23.ts, 1, 35))
|
|
|
|
yield *[new Bar];
|
|
>Bar : Symbol(Bar, Decl(generatorTypeCheck23.ts, 0, 23))
|
|
|
|
yield *[new Baz];
|
|
>Baz : Symbol(Baz, Decl(generatorTypeCheck23.ts, 1, 35))
|
|
}
|