2fac535158
* Handle when files get checked in different orders
* Fix interface extends clause
* Fix import= something type only from a module
* Revert apparently unnecessary addition
* Revert "Revert apparently unnecessary addition"
This reverts commit 7444b0b72e
.
* Disallow `import = a.b.c` on anything with type-only imports
* Safety first
* Add test for TS Server single-file open
* Add big comment
* Extract error reporting function for import aliases
* Delete blank line
* Un-export, comment, and colocate some utils
* Combine 3 type-only marking function calls into one
* Add more export default tests
29 lines
508 B
TypeScript
29 lines
508 B
TypeScript
// @esModuleInterop: true
|
|
|
|
// @Filename: /a.ts
|
|
export class A {}
|
|
|
|
// @Filename: /b.ts
|
|
import type * as types from './a';
|
|
export = types; // Error
|
|
|
|
// @Filename: /c.ts
|
|
import * as types from './a';
|
|
export = types;
|
|
|
|
// @Filename: /d.ts
|
|
import types from './b';
|
|
new types.A(); // Error
|
|
|
|
// @Filename: /e.ts
|
|
import types = require('./b');
|
|
new types.A(); // Error
|
|
|
|
// @Filename: /f.ts
|
|
import * as types from './b';
|
|
new types.A(); // Error
|
|
|
|
// @Filename: /g.ts
|
|
import type types from './c'
|
|
new types.A(); // Error
|