29 lines
435 B
Text
29 lines
435 B
Text
=== 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
|
|
}
|
|
|