151 lines
2.3 KiB
Plaintext
151 lines
2.3 KiB
Plaintext
=== tests/cases/compiler/server.ts ===
|
|
|
|
export class a { }
|
|
>a : a
|
|
|
|
export class a11 { }
|
|
>a11 : a11
|
|
|
|
export class a12 { }
|
|
>a12 : a12
|
|
|
|
export class x { }
|
|
>x : x
|
|
|
|
export class x11 { }
|
|
>x11 : x11
|
|
|
|
export class m { }
|
|
>m : m
|
|
|
|
export class a1 { }
|
|
>a1 : a1
|
|
|
|
export class x1 { }
|
|
>x1 : x1
|
|
|
|
export class a111 { }
|
|
>a111 : a111
|
|
|
|
export class x111 { }
|
|
>x111 : x111
|
|
|
|
export class z1 { }
|
|
>z1 : z1
|
|
|
|
export class z2 { }
|
|
>z2 : z2
|
|
|
|
export class aaaa { }
|
|
>aaaa : aaaa
|
|
|
|
export class aaaa1 { }
|
|
>aaaa1 : aaaa1
|
|
|
|
=== tests/cases/compiler/client.ts ===
|
|
import { } from "server";
|
|
import { a } from "server";
|
|
>a : typeof a
|
|
|
|
export var xxxx = new a();
|
|
>xxxx : a
|
|
>new a() : a
|
|
>a : typeof a
|
|
|
|
import { a11 as b } from "server";
|
|
>a11 : typeof b
|
|
>b : typeof b
|
|
|
|
export var xxxx1 = new b();
|
|
>xxxx1 : b
|
|
>new b() : b
|
|
>b : typeof b
|
|
|
|
import { x, a12 as y } from "server";
|
|
>x : typeof x
|
|
>a12 : typeof y
|
|
>y : typeof y
|
|
|
|
export var xxxx2 = new x();
|
|
>xxxx2 : x
|
|
>new x() : x
|
|
>x : typeof x
|
|
|
|
export var xxxx3 = new y();
|
|
>xxxx3 : y
|
|
>new y() : y
|
|
>y : typeof y
|
|
|
|
import { x11 as z, } from "server";
|
|
>x11 : typeof z
|
|
>z : typeof z
|
|
|
|
export var xxxx4 = new z();
|
|
>xxxx4 : z
|
|
>new z() : z
|
|
>z : typeof z
|
|
|
|
import { m, } from "server";
|
|
>m : typeof m
|
|
|
|
export var xxxx5 = new m();
|
|
>xxxx5 : m
|
|
>new m() : m
|
|
>m : typeof m
|
|
|
|
import { a1, x1 } from "server";
|
|
>a1 : typeof a1
|
|
>x1 : typeof x1
|
|
|
|
export var xxxx6 = new a1();
|
|
>xxxx6 : a1
|
|
>new a1() : a1
|
|
>a1 : typeof a1
|
|
|
|
export var xxxx7 = new x1();
|
|
>xxxx7 : x1
|
|
>new x1() : x1
|
|
>x1 : typeof x1
|
|
|
|
import { a111 as a11, x111 as x11 } from "server";
|
|
>a111 : typeof a11
|
|
>a11 : typeof a11
|
|
>x111 : typeof x11
|
|
>x11 : typeof x11
|
|
|
|
export var xxxx8 = new a11();
|
|
>xxxx8 : a11
|
|
>new a11() : a11
|
|
>a11 : typeof a11
|
|
|
|
export var xxxx9 = new x11();
|
|
>xxxx9 : x11
|
|
>new x11() : x11
|
|
>x11 : typeof x11
|
|
|
|
import { z1 } from "server";
|
|
>z1 : typeof z1
|
|
|
|
export var z111 = new z1();
|
|
>z111 : z1
|
|
>new z1() : z1
|
|
>z1 : typeof z1
|
|
|
|
import { z2 as z3 } from "server";
|
|
>z2 : typeof z3
|
|
>z3 : typeof z3
|
|
|
|
export var z2 = new z3(); // z2 shouldn't give redeclare error
|
|
>z2 : z3
|
|
>new z3() : z3
|
|
>z3 : typeof z3
|
|
|
|
// not referenced
|
|
import { aaaa } from "server";
|
|
>aaaa : typeof aaaa
|
|
|
|
import { aaaa1 as bbbb } from "server";
|
|
>aaaa1 : typeof bbbb
|
|
>bbbb : typeof bbbb
|
|
|