mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Accept baselines
This commit is contained in:
parent
48a91b0084
commit
d163f8326d
@ -1,6 +1,7 @@
|
||||
=== tests/cases/compiler/generatorES6_1.ts ===
|
||||
function* foo() {
|
||||
>foo : () => void
|
||||
>foo : () => IterableIterator<any>
|
||||
|
||||
yield
|
||||
>yield : any
|
||||
}
|
||||
|
||||
@ -3,8 +3,10 @@ class C {
|
||||
>C : C
|
||||
|
||||
public * foo() {
|
||||
>foo : () => void
|
||||
>foo : () => IterableIterator<number>
|
||||
|
||||
yield 1
|
||||
>yield 1 : any
|
||||
>1 : number
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
=== tests/cases/compiler/generatorES6_3.ts ===
|
||||
var v = function*() {
|
||||
>v : () => void
|
||||
>function*() { yield 0} : () => void
|
||||
>v : () => IterableIterator<number>
|
||||
>function*() { yield 0} : () => IterableIterator<number>
|
||||
|
||||
yield 0
|
||||
>yield 0 : any
|
||||
>0 : number
|
||||
}
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
=== tests/cases/compiler/generatorES6_4.ts ===
|
||||
var v = {
|
||||
>v : { foo(): void; }
|
||||
>{ *foo() { yield 0 }} : { foo(): void; }
|
||||
>v : { foo(): IterableIterator<number>; }
|
||||
>{ *foo() { yield 0 }} : { foo(): IterableIterator<number>; }
|
||||
|
||||
*foo() {
|
||||
>foo : () => void
|
||||
>foo : () => IterableIterator<number>
|
||||
|
||||
yield 0
|
||||
>yield 0 : any
|
||||
>0 : number
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
=== tests/cases/compiler/generatorES6_5.ts ===
|
||||
function* foo() {
|
||||
>foo : () => void
|
||||
>foo : () => IterableIterator<any>
|
||||
|
||||
yield a ? b : c;
|
||||
>yield a ? b : c : any
|
||||
>a ? b : c : any
|
||||
>a : any
|
||||
>b : any
|
||||
|
||||
@ -9,5 +9,7 @@ class C {
|
||||
|
||||
let a = yield 1;
|
||||
>a : any
|
||||
>yield 1 : any
|
||||
>1 : number
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
=== tests/cases/conformance/es6/templates/templateStringWithEmbeddedYieldKeywordES6.ts ===
|
||||
function* gen() {
|
||||
>gen : () => void
|
||||
>gen : () => IterableIterator<number>
|
||||
|
||||
// Once this is supported, yield *must* be parenthesized.
|
||||
var x = `abc${ yield 10 }def`;
|
||||
>x : string
|
||||
>`abc${ yield 10 }def` : string
|
||||
>yield 10 : any
|
||||
>10 : number
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user