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
29 lines
520 B
Plaintext
29 lines
520 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.ts ===
|
|
function foo() {}
|
|
>foo : () => void
|
|
|
|
export = foo;
|
|
>foo : () => void
|
|
|
|
=== tests/cases/compiler/file2.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
|
|
}
|
|
|