2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/privacyCheckExportAssignmentOnExportedGenericInterface2.ts ===
|
|
|
|
export = Foo;
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo<T>, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface Foo<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo<T>, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1))
|
|
|
|
>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 2, 14))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function Foo<T>(array: T[]): Foo<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : typeof Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1))
|
|
|
|
>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13))
|
|
|
|
>array : T[], Symbol(array, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 16))
|
|
|
|
>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13))
|
|
|
|
>Foo : Foo<T>, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1))
|
|
|
|
>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return undefined;
|
2015-04-13 22:54:22 +02:00
|
|
|
>undefined : undefined, Symbol(undefined)
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module Foo {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : typeof Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var x = "hello";
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : string, Symbol(x, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 10, 14))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|