a4f9bf0fce
* Create type aliases for unresolved type symbols * Accept new baselines * Update fourslash tests * Unresolved import aliases create tagged unresolved symbols * Add comments * Accept new baselines * Add fourslash tests
34 lines
627 B
Plaintext
34 lines
627 B
Plaintext
=== tests/cases/compiler/file3.ts ===
|
|
import x = require("file1");
|
|
>x : () => void
|
|
|
|
import "file2";
|
|
let a: x.A; // should not work
|
|
>a : x.A
|
|
>x : any
|
|
|
|
=== tests/cases/compiler/file1.d.ts ===
|
|
declare module "file1" {
|
|
>"file1" : typeof import("file1")
|
|
|
|
function foo(): void;
|
|
>foo : () => void
|
|
|
|
export = foo;
|
|
>foo : () => void
|
|
}
|
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
/// <reference path="file1.d.ts"/>
|
|
import x = require("file1");
|
|
>x : () => void
|
|
|
|
// should error since './file1' does not have namespace meaning
|
|
declare module "file1" {
|
|
>"file1" : any
|
|
|
|
interface A { a }
|
|
>a : any
|
|
}
|
|
|