4c7844be74
* init export start as decl * fix some broken * fix more case * fix more and more case * make it work * make lint happy and accept baseline * add more tests * fix system module * add more case * delete useless assert * accept baseline * make lint happy * fix missing utils * update api * make lint happy * add missing semi * fix minor issue * fix locally bound * avoid useless check * update public api * add more case * fix some case * Use multi-module selection in test runner to cut down on duplication. * Accepted baselines. * remove superfluous tests. * Remove baseline. * Downlevel `export * as ns` in es2015. * Accepted baselines. * Update names of things. Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
60 lines
1,010 B
Plaintext
60 lines
1,010 B
Plaintext
=== tests/cases/conformance/es2020/modules/0.ts ===
|
|
export const a = 1;
|
|
>a : 1
|
|
>1 : 1
|
|
|
|
export const b = 2;
|
|
>b : 2
|
|
>2 : 2
|
|
|
|
=== tests/cases/conformance/es2020/modules/1.ts ===
|
|
export * as ns from './0';
|
|
>ns : typeof import("tests/cases/conformance/es2020/modules/0")
|
|
|
|
ns.a;
|
|
>ns.a : number
|
|
>ns : { a: number; b: number; }
|
|
>a : number
|
|
|
|
ns.b;
|
|
>ns.b : number
|
|
>ns : { a: number; b: number; }
|
|
>b : number
|
|
|
|
let ns = {a: 1, b: 2}
|
|
>ns : { a: number; b: number; }
|
|
>{a: 1, b: 2} : { a: number; b: number; }
|
|
>a : number
|
|
>1 : 1
|
|
>b : number
|
|
>2 : 2
|
|
|
|
ns.a;
|
|
>ns.a : number
|
|
>ns : { a: number; b: number; }
|
|
>a : number
|
|
|
|
ns.b;
|
|
>ns.b : number
|
|
>ns : { a: number; b: number; }
|
|
>b : number
|
|
|
|
=== tests/cases/conformance/es2020/modules/2.ts ===
|
|
import * as foo from './1'
|
|
>foo : typeof foo
|
|
|
|
foo.ns.a;
|
|
>foo.ns.a : 1
|
|
>foo.ns : typeof foo.ns
|
|
>foo : typeof foo
|
|
>ns : typeof foo.ns
|
|
>a : 1
|
|
|
|
foo.ns.b;
|
|
>foo.ns.b : 2
|
|
>foo.ns : typeof foo.ns
|
|
>foo : typeof foo
|
|
>ns : typeof foo.ns
|
|
>b : 2
|
|
|