mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
21 lines
512 B
TypeScript
21 lines
512 B
TypeScript
|
// @noImplicitReferences: true
|
||
|
// @traceResolution: true
|
||
|
// @typeRoots: /test/types
|
||
|
// @currentDirectory: /test
|
||
|
|
||
|
// Don't crash in circular library reference situations
|
||
|
|
||
|
// @filename: /test/types/alpha/index.d.ts
|
||
|
/// <reference types="beta" />
|
||
|
declare var alpha: { a: string };
|
||
|
|
||
|
// @filename: /test/types/beta/index.d.ts
|
||
|
/// <reference types="alpha" />
|
||
|
declare var beta: { b: string };
|
||
|
|
||
|
// @filename: /test/foo.ts
|
||
|
/// <reference types="alpha" />
|
||
|
/// <reference types="beta" />
|
||
|
var x: string = alpha.a + beta.b;
|
||
|
|