mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
390 B
TypeScript
16 lines
390 B
TypeScript
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
|
|
|
|
// semmle-extractor-options: --source-type module
|