TypeScript/tests/cases/compiler/blockScopedClassDeclarationAcrossFiles.ts
Nathan Shively-Sanders bb54a6a53e Typeof can refer to a class in a previous file with --out (#16269)
* Typeof can refer block-scoped values in prev file

`typeof C` can now refer to block-scoped values in a preceding file when
used with --out or --outFile. Previously this was not allowed with --out
or --outFile since they depend on file order for their emit.

* Test `typeof C` reference across files with --out
2017-06-05 15:57:32 -07:00

6 lines
89 B
TypeScript

// @outFile: foo.js
// @Filename: c.ts
let foo: typeof C;
// @Filename: b.ts
class C { }