2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/innerAliases2.ts ===
|
|
|
|
module _provider {
|
2014-08-28 21:40:58 +02:00
|
|
|
>_provider : typeof _provider
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class UsefulClass {
|
|
|
|
>UsefulClass : UsefulClass
|
|
|
|
|
|
|
|
public foo() {
|
|
|
|
>foo : () => void
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module consumer {
|
2014-08-28 21:40:58 +02:00
|
|
|
>consumer : typeof consumer
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import provider = _provider;
|
2014-08-28 21:40:58 +02:00
|
|
|
>provider : typeof provider
|
2014-08-25 19:36:12 +02:00
|
|
|
>_provider : typeof provider
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var g:provider.UsefulClass= null;
|
2014-08-25 19:36:12 +02:00
|
|
|
>g : provider.UsefulClass
|
2014-08-28 21:40:58 +02:00
|
|
|
>provider : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>UsefulClass : provider.UsefulClass
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function use():provider.UsefulClass {
|
2014-08-22 03:39:46 +02:00
|
|
|
>use : typeof use
|
2014-08-28 21:40:58 +02:00
|
|
|
>provider : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>UsefulClass : provider.UsefulClass
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p2:provider.UsefulClass= new provider.UsefulClass();
|
2014-08-25 19:36:12 +02:00
|
|
|
>p2 : provider.UsefulClass
|
2014-08-28 21:40:58 +02:00
|
|
|
>provider : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>UsefulClass : provider.UsefulClass
|
|
|
|
>new provider.UsefulClass() : provider.UsefulClass
|
|
|
|
>provider.UsefulClass : typeof provider.UsefulClass
|
|
|
|
>provider : typeof provider
|
|
|
|
>UsefulClass : typeof provider.UsefulClass
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return p2;
|
2014-08-25 19:36:12 +02:00
|
|
|
>p2 : provider.UsefulClass
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|