mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
27 lines
289 B
TypeScript
27 lines
289 B
TypeScript
(function() {
|
|
let x;
|
|
({ x } = { x: { p: 42 } });
|
|
x.p;
|
|
|
|
enum E { a, b }
|
|
E.a;
|
|
})();
|
|
|
|
class C {
|
|
static bar = 2;
|
|
static baz = C.bar + 1;
|
|
}
|
|
C.foo = 3;
|
|
|
|
|
|
namespace N {
|
|
var x;
|
|
x.p = 5;
|
|
|
|
var q = M.Color.Blue; // OK
|
|
|
|
namespace M {
|
|
export const enum Color { Blue }
|
|
}
|
|
}
|