TypeScript/tests/cases/compiler/importAliasFromNamespace.ts
Wesley Wigham d01f4d140a
Reimplement #20320 differently to handle multiple check orders better (#20588)
* Reimplement #20320 less elegantly but handle odd check orders better

* Consolidate 2 of 3 conditions
2017-12-11 13:32:16 -05:00

21 lines
510 B
TypeScript

// @declaration: true
// @filename: internal.ts
namespace My.Internal {
export function getThing(): void {}
export const enum WhichThing {
A, B, C
}
}
// @filename: usage.ts
/// <reference path="./internal.ts" />
namespace SomeOther.Thing {
import Internal = My.Internal;
export class Foo {
private _which: Internal.WhichThing;
constructor() {
Internal.getThing();
Internal.WhichThing.A ? "foo" : "bar";
}
}
}