mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
export namespace A {
|
|
export let x = 42;
|
|
setX();
|
|
x; // global namespace exports are incompletely analysed
|
|
}
|
|
|
|
function setX() {
|
|
A.x = 23;
|
|
}
|
|
|
|
var nd2 = A.x as number; // flow through type assertions
|
|
|
|
class StringList extends List<string> {} // flow through expressions with type arguments
|