TypeScript/tests/cases/compiler/blockScopedNamespaceDifferentFile.ts
2017-05-11 11:38:26 -07:00

23 lines
423 B
TypeScript

// @target: es5
// @outFile: out.js
// @module: amd
// #15734 failed when test.ts comes before typings.d.ts
// @Filename: test.ts
namespace C {
export class Name {
static funcData = A.AA.func();
static someConst = A.AA.foo;
constructor(parameters) {}
}
}
// @Filename: typings.d.ts
declare namespace A {
namespace AA {
function func(): number;
const foo = "";
}
}