TypeScript/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types

30 lines
435 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/privacyCheckExportAssignmentOnExportedGenericInterface2.ts ===
export = Foo;
>Foo : Foo<T>
2014-08-15 23:33:16 +02:00
interface Foo<T> {
>Foo : Foo<T>
>T : T
2014-08-15 23:33:16 +02:00
}
function Foo<T>(array: T[]): Foo<T> {
>Foo : typeof Foo
>T : T
>array : T[]
>T : T
>Foo : Foo<T>
>T : T
2014-08-15 23:33:16 +02:00
return undefined;
>undefined : undefined
2014-08-15 23:33:16 +02:00
}
module Foo {
>Foo : typeof Foo
2014-08-15 23:33:16 +02:00
export var x = "hello";
>x : string
2015-04-13 21:36:11 +02:00
>"hello" : string
2014-08-15 23:33:16 +02:00
}