=== tests/cases/compiler/assignmentCompatability9.ts === module __test1__ { >__test1__ : typeof __test1__ export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; >interfaceWithPublicAndOptional : interfaceWithPublicAndOptional >T : T >U : U >one : T >T : T >two : U >U : U >obj4 : interfaceWithPublicAndOptional >interfaceWithPublicAndOptional : interfaceWithPublicAndOptional >{ one: 1 } : { one: number; } >one : number export var __val__obj4 = obj4; >__val__obj4 : interfaceWithPublicAndOptional >obj4 : interfaceWithPublicAndOptional } module __test2__ { >__test2__ : typeof __test2__ export class classWithOptional { constructor(public one?: T) {} } var x3 = new classWithOptional();; >classWithOptional : classWithOptional >T : T >one : T >T : T >x3 : classWithOptional >new classWithOptional() : classWithOptional >classWithOptional : typeof classWithOptional export var __val__x3 = x3; >__val__x3 : classWithOptional >x3 : classWithOptional } __test2__.__val__x3 = __test1__.__val__obj4 >__test2__.__val__x3 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional >__test2__.__val__x3 : __test2__.classWithOptional >__test2__ : typeof __test2__ >__val__x3 : __test2__.classWithOptional >__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional >__test1__ : typeof __test1__ >__val__obj4 : __test1__.interfaceWithPublicAndOptional