mirror of
https://github.com/github/codeql.git
synced 2026-03-21 23:16:53 +01:00
44 lines
385 B
JavaScript
44 lines
385 B
JavaScript
class C1 {
|
|
test() {
|
|
this.f = x;
|
|
this.f; // OK
|
|
}
|
|
|
|
static f() {
|
|
|
|
}
|
|
}
|
|
|
|
class C2 {
|
|
static test() {
|
|
this.f = x;
|
|
this.f; // OK
|
|
}
|
|
|
|
f() {
|
|
|
|
}
|
|
}
|
|
|
|
class C3 {
|
|
test() {
|
|
this.f; // OK
|
|
}
|
|
|
|
static f() {
|
|
|
|
}
|
|
}
|
|
new C3().f = x;
|
|
|
|
class C4 {
|
|
static test() {
|
|
this.f; // OK
|
|
}
|
|
|
|
f() {
|
|
|
|
}
|
|
}
|
|
C4.f = x;
|