Files
codeql/javascript/ql/test/library-tests/DataFlow/tst.ts
2018-08-02 17:53:23 +01:00

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