=== tests/cases/compiler/generatorES6_2.ts ===
class C {
>C : C
public * foo() {
>foo : () => IterableIterator<number>
yield 1
>yield 1 : any
>1 : number
}