//// [privacyCheckExportAssignmentOnExportedGenericInterface2.ts] export = Foo; interface Foo { } function Foo(array: T[]): Foo { return undefined; } module Foo { export var x = "hello"; } //// [privacyCheckExportAssignmentOnExportedGenericInterface2.js] define(["require", "exports"], function (require, exports) { function Foo(array) { return undefined; } var Foo; (function (Foo) { Foo.x = "hello"; })(Foo || (Foo = {})); return Foo; }); //// [privacyCheckExportAssignmentOnExportedGenericInterface2.d.ts] export = Foo; interface Foo { } declare function Foo(array: T[]): Foo; declare module Foo { var x: string; }