// @noImplicitReferences: true
// @traceResolution: true
// @declaration: true
// @typeRoots: /types
// @currentDirectory: /

// @filename: /types/lib/index.d.ts
interface $ { x }

// @filename: /app.ts
/// <reference types="lib" preserve="true" />
interface A {
    x: $
}