mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Add test
This commit is contained in:
parent
68aad1b85e
commit
5ea43db6ec
@ -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;
|
||||
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user