Accept baselines
This commit is contained in:
parent
cbbc0ca8de
commit
6ab389174c
2 changed files with 97 additions and 0 deletions
46
tests/baselines/reference/assignmentCompatability10.symbols
Normal file
46
tests/baselines/reference/assignmentCompatability10.symbols
Normal file
|
@ -0,0 +1,46 @@
|
|||
=== tests/cases/compiler/assignmentCompatability10.ts ===
|
||||
module __test1__ {
|
||||
>__test1__ : Symbol(__test1__, Decl(assignmentCompatability10.ts, 0, 0))
|
||||
|
||||
export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };;
|
||||
>interfaceWithPublicAndOptional : Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability10.ts, 0, 18))
|
||||
>T : Symbol(T, Decl(assignmentCompatability10.ts, 1, 52))
|
||||
>U : Symbol(U, Decl(assignmentCompatability10.ts, 1, 54))
|
||||
>one : Symbol(interfaceWithPublicAndOptional.one, Decl(assignmentCompatability10.ts, 1, 58))
|
||||
>T : Symbol(T, Decl(assignmentCompatability10.ts, 1, 52))
|
||||
>two : Symbol(interfaceWithPublicAndOptional.two, Decl(assignmentCompatability10.ts, 1, 66))
|
||||
>U : Symbol(U, Decl(assignmentCompatability10.ts, 1, 54))
|
||||
>obj4 : Symbol(obj4, Decl(assignmentCompatability10.ts, 1, 83))
|
||||
>interfaceWithPublicAndOptional : Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability10.ts, 0, 18))
|
||||
>one : Symbol(one, Decl(assignmentCompatability10.ts, 1, 139))
|
||||
|
||||
export var __val__obj4 = obj4;
|
||||
>__val__obj4 : Symbol(__val__obj4, Decl(assignmentCompatability10.ts, 2, 14))
|
||||
>obj4 : Symbol(obj4, Decl(assignmentCompatability10.ts, 1, 83))
|
||||
}
|
||||
module __test2__ {
|
||||
>__test2__ : Symbol(__test2__, Decl(assignmentCompatability10.ts, 3, 1))
|
||||
|
||||
export class classWithPublicAndOptional<T,U> { constructor(public one: T, public two?: U) {} } var x4 = new classWithPublicAndOptional<number, string>(1);;
|
||||
>classWithPublicAndOptional : Symbol(classWithPublicAndOptional, Decl(assignmentCompatability10.ts, 4, 18))
|
||||
>T : Symbol(T, Decl(assignmentCompatability10.ts, 5, 44))
|
||||
>U : Symbol(U, Decl(assignmentCompatability10.ts, 5, 46))
|
||||
>one : Symbol(classWithPublicAndOptional.one, Decl(assignmentCompatability10.ts, 5, 63))
|
||||
>T : Symbol(T, Decl(assignmentCompatability10.ts, 5, 44))
|
||||
>two : Symbol(classWithPublicAndOptional.two, Decl(assignmentCompatability10.ts, 5, 77))
|
||||
>U : Symbol(U, Decl(assignmentCompatability10.ts, 5, 46))
|
||||
>x4 : Symbol(x4, Decl(assignmentCompatability10.ts, 5, 104))
|
||||
>classWithPublicAndOptional : Symbol(classWithPublicAndOptional, Decl(assignmentCompatability10.ts, 4, 18))
|
||||
|
||||
export var __val__x4 = x4;
|
||||
>__val__x4 : Symbol(__val__x4, Decl(assignmentCompatability10.ts, 6, 14))
|
||||
>x4 : Symbol(x4, Decl(assignmentCompatability10.ts, 5, 104))
|
||||
}
|
||||
__test2__.__val__x4 = __test1__.__val__obj4
|
||||
>__test2__.__val__x4 : Symbol(__test2__.__val__x4, Decl(assignmentCompatability10.ts, 6, 14))
|
||||
>__test2__ : Symbol(__test2__, Decl(assignmentCompatability10.ts, 3, 1))
|
||||
>__val__x4 : Symbol(__test2__.__val__x4, Decl(assignmentCompatability10.ts, 6, 14))
|
||||
>__test1__.__val__obj4 : Symbol(__test1__.__val__obj4, Decl(assignmentCompatability10.ts, 2, 14))
|
||||
>__test1__ : Symbol(__test1__, Decl(assignmentCompatability10.ts, 0, 0))
|
||||
>__val__obj4 : Symbol(__test1__.__val__obj4, Decl(assignmentCompatability10.ts, 2, 14))
|
||||
|
51
tests/baselines/reference/assignmentCompatability10.types
Normal file
51
tests/baselines/reference/assignmentCompatability10.types
Normal file
|
@ -0,0 +1,51 @@
|
|||
=== tests/cases/compiler/assignmentCompatability10.ts ===
|
||||
module __test1__ {
|
||||
>__test1__ : typeof __test1__
|
||||
|
||||
export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };;
|
||||
>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional<T, U>
|
||||
>T : T
|
||||
>U : U
|
||||
>one : T
|
||||
>T : T
|
||||
>two : U
|
||||
>U : U
|
||||
>obj4 : interfaceWithPublicAndOptional<number, string>
|
||||
>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional<T, U>
|
||||
>{ one: 1 } : { one: number; }
|
||||
>one : number
|
||||
>1 : number
|
||||
|
||||
export var __val__obj4 = obj4;
|
||||
>__val__obj4 : interfaceWithPublicAndOptional<number, string>
|
||||
>obj4 : interfaceWithPublicAndOptional<number, string>
|
||||
}
|
||||
module __test2__ {
|
||||
>__test2__ : typeof __test2__
|
||||
|
||||
export class classWithPublicAndOptional<T,U> { constructor(public one: T, public two?: U) {} } var x4 = new classWithPublicAndOptional<number, string>(1);;
|
||||
>classWithPublicAndOptional : classWithPublicAndOptional<T, U>
|
||||
>T : T
|
||||
>U : U
|
||||
>one : T
|
||||
>T : T
|
||||
>two : U
|
||||
>U : U
|
||||
>x4 : classWithPublicAndOptional<number, string>
|
||||
>new classWithPublicAndOptional<number, string>(1) : classWithPublicAndOptional<number, string>
|
||||
>classWithPublicAndOptional : typeof classWithPublicAndOptional
|
||||
>1 : number
|
||||
|
||||
export var __val__x4 = x4;
|
||||
>__val__x4 : classWithPublicAndOptional<number, string>
|
||||
>x4 : classWithPublicAndOptional<number, string>
|
||||
}
|
||||
__test2__.__val__x4 = __test1__.__val__obj4
|
||||
>__test2__.__val__x4 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>
|
||||
>__test2__.__val__x4 : __test2__.classWithPublicAndOptional<number, string>
|
||||
>__test2__ : typeof __test2__
|
||||
>__val__x4 : __test2__.classWithPublicAndOptional<number, string>
|
||||
>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>
|
||||
>__test1__ : typeof __test1__
|
||||
>__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>
|
||||
|
Loading…
Reference in a new issue