//// [tests/cases/compiler/declarationFilesWithTypeReferences2.ts] ////

//// [index.d.ts]
interface Error2 {
    stack2: string;
}

//// [app.ts]
function foo(): Error2 {
    return undefined;
}

//// [app.js]
function foo() {
    return undefined;
}


//// [app.d.ts]
/// <reference types="node" />
declare function foo(): Error2;
