mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
367 B
Plaintext
14 lines
367 B
Plaintext
b.ts(1,8): error TS18059: Named imports are not allowed in a deferred import.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
export function foo() {
|
|
console.log("foo from a");
|
|
}
|
|
|
|
==== b.ts (1 errors) ====
|
|
import defer { foo } from "./a";
|
|
~~~~~~~~~~~~~
|
|
!!! error TS18059: Named imports are not allowed in a deferred import.
|
|
|
|
foo(); |