mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
423 B
TypeScript
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";
|