mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
b.ts(15,1): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
b.ts(16,1): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
b.ts(17,1): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
b.ts(18,1): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
b.ts(19,6): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
b.ts(20,6): error TS2349: This expression is not callable.
|
|
Type 'typeof import("mod")' has no call signatures.
|
|
|
|
|
|
==== mod.ts (0 errors) ====
|
|
declare function fun(): void;
|
|
export default fun;
|
|
==== a.ts (0 errors) ====
|
|
import mod = require("./mod");
|
|
export = mod;
|
|
==== b.ts (6 errors) ====
|
|
import a from "./a";
|
|
import { default as b } from "./a";
|
|
import c, { default as d } from "./a";
|
|
import * as self from "./b";
|
|
export { default } from "./a";
|
|
export { default as def } from "./a";
|
|
|
|
a === b;
|
|
b === c;
|
|
c === d;
|
|
d === self.default;
|
|
self.default === self.def;
|
|
|
|
// should all fail
|
|
a();
|
|
~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
b();
|
|
~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
c();
|
|
~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
d();
|
|
~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
self.default();
|
|
~~~~~~~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
self.def();
|
|
~~~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'typeof import("mod")' has no call signatures.
|
|
|
|
// should all work
|
|
a.default();
|
|
b.default();
|
|
c.default();
|
|
d.default();
|
|
self.default.default();
|
|
self.def.default(); |