mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
469 B
TypeScript
26 lines
469 B
TypeScript
// @strict: true
|
|
|
|
// Unqualified namespace member references across merged namespace declarations
|
|
namespace N {
|
|
export const x = 1;
|
|
export function fn() {
|
|
return 42;
|
|
}
|
|
export class A {
|
|
method() {
|
|
console.log("A.method");
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace N {
|
|
export const y = x;
|
|
fn();
|
|
export class B extends A {
|
|
override method() {
|
|
console.log("B.method");
|
|
}
|
|
}
|
|
const a = new A();
|
|
}
|