1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
=== tests/cases/compiler/assignmentCompatability39.ts ===
module __test1__ {
>__test1__ : Symbol(__test1__, Decl(assignmentCompatability39.ts, 0, 0))
export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };;
>interfaceWithPublicAndOptional : Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability39.ts, 0, 18))
>T : Symbol(T, Decl(assignmentCompatability39.ts, 1, 52))
>U : Symbol(U, Decl(assignmentCompatability39.ts, 1, 54))
>one : Symbol(interfaceWithPublicAndOptional.one, Decl(assignmentCompatability39.ts, 1, 58))
>T : Symbol(T, Decl(assignmentCompatability39.ts, 1, 52))
>two : Symbol(interfaceWithPublicAndOptional.two, Decl(assignmentCompatability39.ts, 1, 66))
>U : Symbol(U, Decl(assignmentCompatability39.ts, 1, 54))
>obj4 : Symbol(obj4, Decl(assignmentCompatability39.ts, 1, 83))
>interfaceWithPublicAndOptional : Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability39.ts, 0, 18))
>one : Symbol(one, Decl(assignmentCompatability39.ts, 1, 139))
export var __val__obj4 = obj4;
>__val__obj4 : Symbol(__val__obj4, Decl(assignmentCompatability39.ts, 2, 14))
>obj4 : Symbol(obj4, Decl(assignmentCompatability39.ts, 1, 83))
}
module __test2__ {
>__test2__ : Symbol(__test2__, Decl(assignmentCompatability39.ts, 3, 1))
export class classWithTwoPublic<T,U> { constructor(public one: T, public two: U) {} } var x2 = new classWithTwoPublic(1, "a");;
>classWithTwoPublic : Symbol(classWithTwoPublic, Decl(assignmentCompatability39.ts, 4, 18))
>T : Symbol(T, Decl(assignmentCompatability39.ts, 5, 44))
>U : Symbol(U, Decl(assignmentCompatability39.ts, 5, 46))
>one : Symbol(classWithTwoPublic.one, Decl(assignmentCompatability39.ts, 5, 63))
>T : Symbol(T, Decl(assignmentCompatability39.ts, 5, 44))
>two : Symbol(classWithTwoPublic.two, Decl(assignmentCompatability39.ts, 5, 77))
>U : Symbol(U, Decl(assignmentCompatability39.ts, 5, 46))
>x2 : Symbol(x2, Decl(assignmentCompatability39.ts, 5, 104))
>classWithTwoPublic : Symbol(classWithTwoPublic, Decl(assignmentCompatability39.ts, 4, 18))
export var __val__x2 = x2;
>__val__x2 : Symbol(__val__x2, Decl(assignmentCompatability39.ts, 6, 14))
>x2 : Symbol(x2, Decl(assignmentCompatability39.ts, 5, 104))
}
__test2__.__val__x2 = __test1__.__val__obj4
>__test2__.__val__x2 : Symbol(__test2__.__val__x2, Decl(assignmentCompatability39.ts, 6, 14))
>__test2__ : Symbol(__test2__, Decl(assignmentCompatability39.ts, 3, 1))
>__val__x2 : Symbol(__test2__.__val__x2, Decl(assignmentCompatability39.ts, 6, 14))
>__test1__.__val__obj4 : Symbol(__test1__.__val__obj4, Decl(assignmentCompatability39.ts, 2, 14))
>__test1__ : Symbol(__test1__, Decl(assignmentCompatability39.ts, 0, 0))
>__val__obj4 : Symbol(__test1__.__val__obj4, Decl(assignmentCompatability39.ts, 2, 14))
|