This commit is contained in:
uniqueiniquity 2018-01-16 11:25:54 -08:00
parent 68aad1b85e
commit 5ea43db6ec
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,14 @@
//// [tests/cases/compiler/tripleSlashReferenceAbsoluteWindowsPath.ts] ////
//// [c.ts]
const x = 5;
//// [d.ts]
/// <reference path="C:\a\b\c.ts" />
const y = x + 3;
//// [c.js]
var x = 5;
//// [d.js]
/// <reference path="C:\a\b\c.ts" />
var y = x + 3;

View File

@ -0,0 +1,10 @@
=== C:/a/b/d.ts ===
/// <reference path="C:\a\b\c.ts" />
const y = x + 3;
>y : Symbol(y, Decl(d.ts, 1, 5))
>x : Symbol(x, Decl(c.ts, 0, 5))
=== C:/a/b/c.ts ===
const x = 5;
>x : Symbol(x, Decl(c.ts, 0, 5))

View File

@ -0,0 +1,13 @@
=== C:/a/b/d.ts ===
/// <reference path="C:\a\b\c.ts" />
const y = x + 3;
>y : number
>x + 3 : number
>x : 5
>3 : 3
=== C:/a/b/c.ts ===
const x = 5;
>x : 5
>5 : 5

View File

@ -0,0 +1,6 @@
//@Filename: C:\a\b\c.ts
const x = 5;
//@Filename: C:\a\b\d.ts
/// <reference path="C:\a\b\c.ts" />
const y = x + 3;