mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
69 lines
634 B
JavaScript
69 lines
634 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;
|
|
|
|
class C5_super {
|
|
f() {
|
|
|
|
}
|
|
}
|
|
class C5 extends C5_super{
|
|
static f() {
|
|
|
|
}
|
|
test() {
|
|
this.f; // OK
|
|
}
|
|
}
|
|
|
|
class C6_super {
|
|
f() {
|
|
|
|
}
|
|
}
|
|
class C6 extends C6_super{
|
|
static test() {
|
|
this.f; // NOT OK
|
|
}
|
|
}
|