JS: Implement viableImplInCallContext

This commit is contained in:
Asger F
2025-02-14 13:25:19 +01:00
parent ff7bc7c25e
commit ab5fc9f4d7
2 changed files with 41 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ class Subclass1 extends Base {
this.baseMethod(source("sub1"));
}
subclassMethod(x) {
sink(x); // $ hasValueFlow=sub1 SPURIOUS: hasValueFlow=sub2
sink(x); // $ hasValueFlow=sub1
}
}
@@ -20,7 +20,7 @@ class Subclass2 extends Base {
this.baseMethod(source("sub2"));
}
subclassMethod(x) {
sink(x); // $ hasValueFlow=sub2 SPURIOUS: hasValueFlow=sub1
sink(x); // $ hasValueFlow=sub2
}
}