Files
tsgo/testdata/baselines/reference/submodule/compiler/exportSpecifierReferencingOuterDeclaration3.js

14 lines
423 B
TypeScript

//// [tests/cases/compiler/exportSpecifierReferencingOuterDeclaration3.ts] ////
//// [exportSpecifierReferencingOuterDeclaration3.ts]
declare namespace X { export interface bar { } }
declare module "m" {
namespace X { export interface foo { } }
export { X };
export function foo(): X.foo;
export function bar(): X.bar; // error
}
//// [exportSpecifierReferencingOuterDeclaration3.js]
"use strict";