2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/assignmentCompatability1.ts ===
|
|
|
|
module __test1__ {
|
2015-04-13 22:54:22 +02:00
|
|
|
>__test1__ : typeof __test1__, Symbol(__test1__,Decl(assignmentCompatability1.ts,0,0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };;
|
2015-04-13 22:54:22 +02:00
|
|
|
>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional<T, U>, Symbol(interfaceWithPublicAndOptional,Decl(assignmentCompatability1.ts,0,18))
|
|
|
|
>T : T, Symbol(T,Decl(assignmentCompatability1.ts,1,52))
|
|
|
|
>U : U, Symbol(U,Decl(assignmentCompatability1.ts,1,54))
|
|
|
|
>one : T, Symbol(one,Decl(assignmentCompatability1.ts,1,58))
|
|
|
|
>T : T, Symbol(T,Decl(assignmentCompatability1.ts,1,52))
|
|
|
|
>two : U, Symbol(two,Decl(assignmentCompatability1.ts,1,66))
|
|
|
|
>U : U, Symbol(U,Decl(assignmentCompatability1.ts,1,54))
|
|
|
|
>obj4 : interfaceWithPublicAndOptional<number, string>, Symbol(obj4,Decl(assignmentCompatability1.ts,1,83))
|
|
|
|
>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional<T, U>, Symbol(interfaceWithPublicAndOptional,Decl(assignmentCompatability1.ts,0,18))
|
2015-01-24 17:04:23 +01:00
|
|
|
>{ one: 1 } : { one: number; }
|
2015-04-13 22:54:22 +02:00
|
|
|
>one : number, Symbol(one,Decl(assignmentCompatability1.ts,1,139))
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var __val__obj4 = obj4;
|
2015-04-13 22:54:22 +02:00
|
|
|
>__val__obj4 : interfaceWithPublicAndOptional<number, string>, Symbol(__val__obj4,Decl(assignmentCompatability1.ts,2,14))
|
|
|
|
>obj4 : interfaceWithPublicAndOptional<number, string>, Symbol(obj4,Decl(assignmentCompatability1.ts,1,83))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
module __test2__ {
|
2015-04-13 22:54:22 +02:00
|
|
|
>__test2__ : typeof __test2__, Symbol(__test2__,Decl(assignmentCompatability1.ts,3,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var aa = {};;
|
2015-04-13 22:54:22 +02:00
|
|
|
>aa : {}, Symbol(aa,Decl(assignmentCompatability1.ts,5,14))
|
2014-08-15 23:33:16 +02:00
|
|
|
>{} : {}
|
|
|
|
|
|
|
|
export var __val__aa = aa;
|
2015-04-13 22:54:22 +02:00
|
|
|
>__val__aa : {}, Symbol(__val__aa,Decl(assignmentCompatability1.ts,6,14))
|
|
|
|
>aa : {}, Symbol(aa,Decl(assignmentCompatability1.ts,5,14))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
__test2__.__val__aa = __test1__.__val__obj4
|
2014-08-25 19:36:12 +02:00
|
|
|
>__test2__.__val__aa = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>
|
2015-04-13 22:54:22 +02:00
|
|
|
>__test2__.__val__aa : {}, Symbol(__test2__.__val__aa,Decl(assignmentCompatability1.ts,6,14))
|
|
|
|
>__test2__ : typeof __test2__, Symbol(__test2__,Decl(assignmentCompatability1.ts,3,1))
|
|
|
|
>__val__aa : {}, Symbol(__test2__.__val__aa,Decl(assignmentCompatability1.ts,6,14))
|
|
|
|
>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>, Symbol(__test1__.__val__obj4,Decl(assignmentCompatability1.ts,2,14))
|
|
|
|
>__test1__ : typeof __test1__, Symbol(__test1__,Decl(assignmentCompatability1.ts,0,0))
|
|
|
|
>__val__obj4 : __test1__.interfaceWithPublicAndOptional<number, string>, Symbol(__test1__.__val__obj4,Decl(assignmentCompatability1.ts,2,14))
|
2014-08-15 23:33:16 +02:00
|
|
|
|