1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
=== tests/cases/compiler/other.ts ===
type Experiment<Name> = {
>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0))
>Name : Symbol(Name, Decl(other.ts, 0, 16))
name: Name;
>name : Symbol(name, Decl(other.ts, 0, 25))
>Name : Symbol(Name, Decl(other.ts, 0, 16))
};
declare const createExperiment: <Name extends string>(
>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13))
>Name : Symbol(Name, Decl(other.ts, 3, 33))
options: Experiment<Name>
>options : Symbol(options, Decl(other.ts, 3, 54))
>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0))
>Name : Symbol(Name, Decl(other.ts, 3, 33))
) => Experiment<Name>;
>Experiment : Symbol(Experiment, Decl(other.ts, 0, 0))
>Name : Symbol(Name, Decl(other.ts, 3, 33))
export default createExperiment({
>createExperiment : Symbol(createExperiment, Decl(other.ts, 3, 13))
name: "foo"
>name : Symbol(name, Decl(other.ts, 6, 33))
});
=== tests/cases/compiler/main.ts ===
import * as other2 from "./other";
>other2 : Symbol(other2, Decl(main.ts, 0, 6))
export const obj = {
>obj : Symbol(obj, Decl(main.ts, 1, 12))
[other2.default.name]: 1
>[other2.default.name] : Symbol([other2.default.name], Decl(main.ts, 1, 20))
>other2.default.name : Symbol(name, Decl(other.ts, 0, 25))
>other2.default : Symbol(other2.default, Decl(other.ts, 5, 22))
>other2 : Symbol(other2, Decl(main.ts, 0, 6))
>default : Symbol(other2.default, Decl(other.ts, 5, 22))
>name : Symbol(name, Decl(other.ts, 0, 25))
};
|