2014-12-16 23:59:21 +01:00
|
|
|
=== tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt.ts ===
|
|
|
|
module Z.M {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Z : typeof Z
|
|
|
|
>M : typeof M
|
2014-12-16 23:59:21 +01:00
|
|
|
|
|
|
|
export function bar() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>bar : () => string
|
2014-12-16 23:59:21 +01:00
|
|
|
|
|
|
|
return "";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-12-16 23:59:21 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
module A.M {
|
2015-04-16 01:44:20 +02:00
|
|
|
>A : typeof A
|
|
|
|
>M : typeof A.M
|
2014-12-16 23:59:21 +01:00
|
|
|
|
|
|
|
import M = Z.M;
|
2015-04-16 01:44:20 +02:00
|
|
|
>M : typeof M
|
|
|
|
>Z : typeof Z
|
|
|
|
>M : typeof M
|
2014-12-16 23:59:21 +01:00
|
|
|
|
|
|
|
export function bar() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>bar : () => void
|
2014-12-16 23:59:21 +01:00
|
|
|
}
|
|
|
|
M.bar(); // Should call Z.M.bar
|
|
|
|
>M.bar() : string
|
2015-04-16 01:44:20 +02:00
|
|
|
>M.bar : () => string
|
|
|
|
>M : typeof M
|
|
|
|
>bar : () => string
|
2014-12-16 23:59:21 +01:00
|
|
|
}
|