TypeScript/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types
2015-04-15 16:44:20 -07:00

30 lines
435 B
Plaintext

=== tests/cases/compiler/privacyCheckExportAssignmentOnExportedGenericInterface2.ts ===
export = Foo;
>Foo : Foo<T>
interface Foo<T> {
>Foo : Foo<T>
>T : T
}
function Foo<T>(array: T[]): Foo<T> {
>Foo : typeof Foo
>T : T
>array : T[]
>T : T
>Foo : Foo<T>
>T : T
return undefined;
>undefined : undefined
}
module Foo {
>Foo : typeof Foo
export var x = "hello";
>x : string
>"hello" : string
}