mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
626 B
Plaintext
27 lines
626 B
Plaintext
//// [tests/cases/compiler/commonSourceDirectory.ts] ////
|
|
|
|
=== /app/index.ts ===
|
|
/// <reference path="../types/bar.d.ts" preserve="true" />
|
|
import { x } from "foo";
|
|
>x : Symbol(x, Decl(index.ts, 1, 8))
|
|
|
|
import { y } from "bar";
|
|
>y : Symbol(y, Decl(index.ts, 2, 8))
|
|
|
|
x + y;
|
|
>x : Symbol(x, Decl(index.ts, 1, 8))
|
|
>y : Symbol(y, Decl(index.ts, 2, 8))
|
|
|
|
=== /node_modules/foo/index.ts ===
|
|
export const x = 0;
|
|
>x : Symbol(x, Decl(index.ts, 0, 12))
|
|
|
|
=== /types/bar.d.ts ===
|
|
declare module "bar" {
|
|
>"bar" : Symbol("bar", Decl(bar.d.ts, 0, 0))
|
|
|
|
export const y = 0;
|
|
>y : Symbol(y, Decl(bar.d.ts, 1, 16))
|
|
}
|
|
|