2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/collisionExportsRequireAndUninstantiatedModule.ts ===
|
|
|
|
export module require { // no error
|
2014-08-28 21:40:58 +02:00
|
|
|
>require : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface I {
|
|
|
|
>I : I
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function foo(): require.I {
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo : () => require.I
|
2014-08-28 21:40:58 +02:00
|
|
|
>require : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>I : require.I
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
export module exports { // no error
|
2014-08-28 21:40:58 +02:00
|
|
|
>exports : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface I {
|
|
|
|
>I : I
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export function foo2(): exports.I {
|
2014-08-28 21:52:44 +02:00
|
|
|
>foo2 : () => exports.I
|
2014-08-28 21:40:58 +02:00
|
|
|
>exports : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>I : exports.I
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|