mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
25 lines
281 B
TypeScript
25 lines
281 B
TypeScript
import * as fs from "fs"; // treat file as module
|
|
|
|
function f() {}
|
|
namespace f {
|
|
export function inner() {}
|
|
}
|
|
|
|
f();
|
|
f.inner();
|
|
|
|
class C {}
|
|
namespace C {
|
|
export function inner() {}
|
|
}
|
|
|
|
new C();
|
|
C.inner();
|
|
|
|
namespace g {
|
|
export function inner() {}
|
|
}
|
|
|
|
g(); // $ Alert
|
|
g.inner();
|