File: moduleResolutionWithSymlinks_preserveSymlinks.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (31 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//// [tests/cases/compiler/moduleResolutionWithSymlinks_preserveSymlinks.ts] ////

//// [index.d.ts]
export { real } from "real";
export class C { private x; }

//// [index.d.ts]
export const real: string;

//// [app.ts]
// We shouldn't resolve symlinks for references either. See the trace.
/// <reference types="linked" />

import { C as C1 } from "linked";
import { C as C2 } from "linked2";

let x = new C1();
// Should fail. We no longer resolve any symlinks.
x = new C2();


//// [app.js]
"use strict";
// We shouldn't resolve symlinks for references either. See the trace.
/// <reference types="linked" />
exports.__esModule = true;
var linked_1 = require("linked");
var linked2_1 = require("linked2");
var x = new linked_1.C();
// Should fail. We no longer resolve any symlinks.
x = new linked2_1.C();