I forgot to commit the baselines. T.T
This commit is contained in:
parent
5ecc271c27
commit
075bea0ab8
3 changed files with 119 additions and 0 deletions
29
tests/baselines/reference/commonSourceDir6.js
Normal file
29
tests/baselines/reference/commonSourceDir6.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
//// [tests/cases/compiler/commonSourceDir6.ts] ////
|
||||
|
||||
//// [bar.ts]
|
||||
import {z} from "./foo";
|
||||
export var x = z + z;
|
||||
|
||||
//// [foo.ts]
|
||||
import {pi} from "../baz";
|
||||
export var i = Math.sqrt(-1);
|
||||
export var z = pi * pi;
|
||||
|
||||
//// [baz.ts]
|
||||
import {x} from "a/bar";
|
||||
import {i} from "a/foo";
|
||||
export var pi = Math.PI;
|
||||
export var y = x * i;
|
||||
|
||||
//// [concat.js]
|
||||
define("tests/cases/compiler/baz", ["require", "exports", "tests/cases/compiler/a/bar", "tests/cases/compiler/a/foo"], function (require, exports, bar_1, foo_1) {
|
||||
exports.pi = Math.PI;
|
||||
exports.y = bar_1.x * foo_1.i;
|
||||
});
|
||||
define("tests/cases/compiler/a/foo", ["require", "exports", "tests/cases/compiler/baz"], function (require, exports, baz_1) {
|
||||
exports.i = Math.sqrt(-1);
|
||||
exports.z = baz_1.pi * baz_1.pi;
|
||||
});
|
||||
define("tests/cases/compiler/a/bar", ["require", "exports", "tests/cases/compiler/a/foo"], function (require, exports, foo_2) {
|
||||
exports.x = foo_2.z + foo_2.z;
|
||||
});
|
42
tests/baselines/reference/commonSourceDir6.symbols
Normal file
42
tests/baselines/reference/commonSourceDir6.symbols
Normal file
|
@ -0,0 +1,42 @@
|
|||
=== tests/cases/compiler/a/bar.ts ===
|
||||
import {z} from "./foo";
|
||||
>z : Symbol(z, Decl(bar.ts, 0, 8))
|
||||
|
||||
export var x = z + z;
|
||||
>x : Symbol(x, Decl(bar.ts, 1, 10))
|
||||
>z : Symbol(z, Decl(bar.ts, 0, 8))
|
||||
>z : Symbol(z, Decl(bar.ts, 0, 8))
|
||||
|
||||
=== tests/cases/compiler/a/foo.ts ===
|
||||
import {pi} from "../baz";
|
||||
>pi : Symbol(pi, Decl(foo.ts, 0, 8))
|
||||
|
||||
export var i = Math.sqrt(-1);
|
||||
>i : Symbol(i, Decl(foo.ts, 1, 10))
|
||||
>Math.sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
|
||||
>Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
|
||||
|
||||
export var z = pi * pi;
|
||||
>z : Symbol(z, Decl(foo.ts, 2, 10))
|
||||
>pi : Symbol(pi, Decl(foo.ts, 0, 8))
|
||||
>pi : Symbol(pi, Decl(foo.ts, 0, 8))
|
||||
|
||||
=== tests/cases/compiler/baz.ts ===
|
||||
import {x} from "a/bar";
|
||||
>x : Symbol(x, Decl(baz.ts, 0, 8))
|
||||
|
||||
import {i} from "a/foo";
|
||||
>i : Symbol(i, Decl(baz.ts, 1, 8))
|
||||
|
||||
export var pi = Math.PI;
|
||||
>pi : Symbol(pi, Decl(baz.ts, 2, 10))
|
||||
>Math.PI : Symbol(Math.PI, Decl(lib.d.ts, --, --))
|
||||
>Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
>PI : Symbol(Math.PI, Decl(lib.d.ts, --, --))
|
||||
|
||||
export var y = x * i;
|
||||
>y : Symbol(y, Decl(baz.ts, 3, 10))
|
||||
>x : Symbol(x, Decl(baz.ts, 0, 8))
|
||||
>i : Symbol(i, Decl(baz.ts, 1, 8))
|
||||
|
48
tests/baselines/reference/commonSourceDir6.types
Normal file
48
tests/baselines/reference/commonSourceDir6.types
Normal file
|
@ -0,0 +1,48 @@
|
|||
=== tests/cases/compiler/a/bar.ts ===
|
||||
import {z} from "./foo";
|
||||
>z : number
|
||||
|
||||
export var x = z + z;
|
||||
>x : number
|
||||
>z + z : number
|
||||
>z : number
|
||||
>z : number
|
||||
|
||||
=== tests/cases/compiler/a/foo.ts ===
|
||||
import {pi} from "../baz";
|
||||
>pi : number
|
||||
|
||||
export var i = Math.sqrt(-1);
|
||||
>i : number
|
||||
>Math.sqrt(-1) : number
|
||||
>Math.sqrt : (x: number) => number
|
||||
>Math : Math
|
||||
>sqrt : (x: number) => number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
|
||||
export var z = pi * pi;
|
||||
>z : number
|
||||
>pi * pi : number
|
||||
>pi : number
|
||||
>pi : number
|
||||
|
||||
=== tests/cases/compiler/baz.ts ===
|
||||
import {x} from "a/bar";
|
||||
>x : number
|
||||
|
||||
import {i} from "a/foo";
|
||||
>i : number
|
||||
|
||||
export var pi = Math.PI;
|
||||
>pi : number
|
||||
>Math.PI : number
|
||||
>Math : Math
|
||||
>PI : number
|
||||
|
||||
export var y = x * i;
|
||||
>y : number
|
||||
>x * i : number
|
||||
>x : number
|
||||
>i : number
|
||||
|
Loading…
Reference in a new issue