Accept baselines

This commit is contained in:
Jason Freeman 2015-04-29 19:06:03 -07:00
parent 48a91b0084
commit d163f8326d
7 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,7 @@
=== tests/cases/compiler/generatorES6_1.ts ===
function* foo() {
>foo : () => void
>foo : () => IterableIterator<any>
yield
>yield : any
}

View File

@ -3,8 +3,10 @@ class C {
>C : C
public * foo() {
>foo : () => void
>foo : () => IterableIterator<number>
yield 1
>yield 1 : any
>1 : number
}
}

View File

@ -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
}

View File

@ -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
}
}

View File

@ -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

View File

@ -9,5 +9,7 @@ class C {
let a = yield 1;
>a : any
>yield 1 : any
>1 : number
}
}

View File

@ -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
}