From f9a317ec97d864baaeb2125ebd8b0b0e090cd0f1 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Fri, 28 Oct 2016 18:16:33 -0700 Subject: [PATCH] Update baselines --- .../declarationEmitTypeAliasWithTypeParameters1.types | 4 ++-- .../declarationEmitTypeAliasWithTypeParameters2.types | 4 ++-- .../declarationEmitTypeAliasWithTypeParameters3.js | 4 +++- .../declarationEmitTypeAliasWithTypeParameters3.types | 6 +++--- .../declarationEmitTypeAliasWithTypeParameters4.types | 6 +++--- .../declarationEmitTypeAliasWithTypeParameters6.js | 4 +++- .../declarationEmitTypeAliasWithTypeParameters6.types | 10 +++++----- 7 files changed, 21 insertions(+), 17 deletions(-) diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.types b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.types index ee6dbab804d..3ff9f9bde1d 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.types +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.types @@ -8,7 +8,7 @@ export type Bar = () => [X, Y]; >Y : Y export type Foo = Bar; ->Foo : Bar +>Foo : () => [any, Y] >Y : Y >Bar : Bar >Y : Y @@ -17,6 +17,6 @@ export const y = (x: Foo) => 1 >y : (x: () => [any, string]) => number >(x: Foo) => 1 : (x: () => [any, string]) => number >x : () => [any, string] ->Foo : Bar +>Foo : () => [any, Y] >1 : 1 diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.types b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.types index 4c88e88469a..8a16a05f32c 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.types +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.types @@ -10,7 +10,7 @@ export type Bar = () => [X, Y, Z]; >Z : Z export type Baz = Bar; ->Baz : Bar +>Baz : () => [M, string, N] >M : M >N : N >Bar : Bar @@ -20,7 +20,7 @@ export type Baz = Bar; export type Baa = Baz; >Baa : () => [boolean, string, Y] >Y : Y ->Baz : Bar +>Baz : () => [M, string, N] >Y : Y export const y = (x: Baa) => 1 diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js index 9e2a366a685..8ab4c98c668 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js @@ -18,4 +18,6 @@ function bar() { declare type Foo = { foo(): Foo; }; -declare function bar(): Foo; +declare function bar(): { + foo(): any; +}; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.types b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.types index 1b2ff140178..f7ae5bd9cf6 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.types +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.types @@ -5,17 +5,17 @@ type Foo = { >T : T foo(): Foo ->foo : () => Foo +>foo : () => { foo(): any; } >U : U >Foo : Foo >U : U }; function bar() { ->bar : () => Foo +>bar : () => { foo(): any; } return {} as Foo; ->{} as Foo : Foo +>{} as Foo : { foo(): any; } >{} : {} >Foo : Foo } diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.types b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.types index d77100c993d..874d5247901 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.types +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.types @@ -6,7 +6,7 @@ type Foo = { >Y : Y foo(): Foo ->foo : () => Foo +>foo : () => { foo(): any; } >U : U >J : J >Foo : Foo @@ -15,7 +15,7 @@ type Foo = { }; type SubFoo = Foo; ->SubFoo : Foo +>SubFoo : { foo(): any; } >R : R >Foo : Foo >R : R @@ -26,6 +26,6 @@ function foo() { return {} as SubFoo; >{} as SubFoo : { foo(): any; } >{} : {} ->SubFoo : Foo +>SubFoo : { foo(): any; } } diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js index 0e34bd44d40..d06d4c955bc 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js @@ -21,4 +21,6 @@ declare type Foo = { foo(): Foo; }; declare type SubFoo = Foo; -declare function foo(): Foo; +declare function foo(): { + foo(): any; +}; diff --git a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.types b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.types index ffa53c701fc..40f25c88462 100644 --- a/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.types +++ b/tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.types @@ -6,7 +6,7 @@ type Foo = { >Y : Y foo(): Foo ->foo : () => Foo +>foo : () => { foo(): any; } >U : U >J : J >Foo : Foo @@ -15,7 +15,7 @@ type Foo = { }; type SubFoo = Foo; ->SubFoo : Foo +>SubFoo : { foo(): any; } >R : R >S : S >Foo : Foo @@ -23,11 +23,11 @@ type SubFoo = Foo; >R : R function foo() { ->foo : () => Foo +>foo : () => { foo(): any; } return {} as SubFoo; ->{} as SubFoo : Foo +>{} as SubFoo : { foo(): any; } >{} : {} ->SubFoo : Foo +>SubFoo : { foo(): any; } }