37 lines
No EOL
795 B
JavaScript
37 lines
No EOL
795 B
JavaScript
//// [privacyCheckTypeOfInvisibleModuleNoError.ts]
|
|
module Outer {
|
|
module Inner {
|
|
export var m: number;
|
|
}
|
|
|
|
export var f: typeof Inner; // Since we dont unwind inner any more, it is error here
|
|
}
|
|
|
|
|
|
//// [privacyCheckTypeOfInvisibleModuleNoError.js]
|
|
var Outer;
|
|
(function (Outer) {
|
|
var Inner;
|
|
(function (Inner) {
|
|
Inner.m;
|
|
})(Inner || (Inner = {}));
|
|
Outer.f;
|
|
})(Outer || (Outer = {}));
|
|
|
|
|
|
//// [privacyCheckTypeOfInvisibleModuleNoError.d.ts]
|
|
declare module Outer {
|
|
var f: typeof Inner;
|
|
}
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
==== tests/cases/compiler/privacyCheckTypeOfInvisibleModuleNoError.d.ts (1 errors) ====
|
|
declare module Outer {
|
|
var f: typeof Inner;
|
|
~~~~~
|
|
!!! Cannot find name 'Inner'.
|
|
}
|
|
|