Accept new baselines

This commit is contained in:
Anders Hejlsberg 2017-10-11 16:03:23 -07:00
parent 19f70f6d3d
commit 7ee96293ca
3 changed files with 40 additions and 0 deletions

View File

@ -23,6 +23,11 @@ combined(comb => {
comb.b
comb.a
})
// Repro from #19091
declare function f<T>(a: T): { a: typeof a };
let n: number = f(2).a;
//// [indirectTypeParameterReferences.js]
@ -41,3 +46,4 @@ combined(function (comb) {
comb.b;
comb.a;
});
var n = f(2).a;

View File

@ -73,3 +73,19 @@ combined(comb => {
})
// Repro from #19091
declare function f<T>(a: T): { a: typeof a };
>f : Symbol(f, Decl(indirectTypeParameterReferences.ts, 23, 2))
>T : Symbol(T, Decl(indirectTypeParameterReferences.ts, 27, 19))
>a : Symbol(a, Decl(indirectTypeParameterReferences.ts, 27, 22))
>T : Symbol(T, Decl(indirectTypeParameterReferences.ts, 27, 19))
>a : Symbol(a, Decl(indirectTypeParameterReferences.ts, 27, 30))
>a : Symbol(a, Decl(indirectTypeParameterReferences.ts, 27, 22))
let n: number = f(2).a;
>n : Symbol(n, Decl(indirectTypeParameterReferences.ts, 28, 3))
>f(2).a : Symbol(a, Decl(indirectTypeParameterReferences.ts, 27, 30))
>f : Symbol(f, Decl(indirectTypeParameterReferences.ts, 23, 2))
>a : Symbol(a, Decl(indirectTypeParameterReferences.ts, 27, 30))

View File

@ -86,3 +86,21 @@ combined(comb => {
})
// Repro from #19091
declare function f<T>(a: T): { a: typeof a };
>f : <T>(a: T) => { a: T; }
>T : T
>a : T
>T : T
>a : T
>a : T
let n: number = f(2).a;
>n : number
>f(2).a : number
>f(2) : { a: number; }
>f : <T>(a: T) => { a: T; }
>2 : 2
>a : number