* 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
6 lines
89 B
TypeScript
6 lines
89 B
TypeScript
// @outFile: foo.js
|
|
// @Filename: c.ts
|
|
let foo: typeof C;
|
|
// @Filename: b.ts
|
|
class C { }
|