2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/nestedModulePrivateAccess.ts ===
|
|
|
|
module a{
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x:number;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module b{
|
2015-04-16 01:44:20 +02:00
|
|
|
>b : typeof b
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y = x; // should not be an error
|
2015-04-16 01:44:20 +02:00
|
|
|
>y : number
|
|
|
|
>x : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|