mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
908 B
Plaintext
36 lines
908 B
Plaintext
//// [tests/cases/compiler/esModuleInteropDefaultMemberMustBeSyntacticallyDefaultExport.ts] ////
|
|
|
|
=== point.d.ts ===
|
|
declare class Point {
|
|
>Point : Symbol(Point, Decl(point.d.ts, 0, 0))
|
|
|
|
x: number;
|
|
>x : Symbol(Point.x, Decl(point.d.ts, 0, 21))
|
|
|
|
y: number;
|
|
>y : Symbol(Point.y, Decl(point.d.ts, 1, 14))
|
|
|
|
constructor(x: number, y: number);
|
|
>x : Symbol(x, Decl(point.d.ts, 4, 16))
|
|
>y : Symbol(y, Decl(point.d.ts, 4, 26))
|
|
|
|
static default: "foo";
|
|
>default : Symbol(Point.default, Decl(point.d.ts, 4, 38))
|
|
}
|
|
|
|
export = Point;
|
|
>Point : Symbol(Point, Decl(point.d.ts, 0, 0))
|
|
|
|
=== index.ts ===
|
|
import Point from "./point";
|
|
>Point : Symbol(Point, Decl(index.ts, 0, 6))
|
|
|
|
const C = Point;
|
|
>C : Symbol(C, Decl(index.ts, 2, 5))
|
|
>Point : Symbol(Point, Decl(index.ts, 0, 6))
|
|
|
|
const p = new C(1, 2);
|
|
>p : Symbol(p, Decl(index.ts, 3, 5))
|
|
>C : Symbol(C, Decl(index.ts, 2, 5))
|
|
|