mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
No implicit instances for constructor call
This commit is contained in:
committed by
Jonas Jensen
parent
04454ef184
commit
15b56d93bd
@@ -14,7 +14,8 @@ private newtype TInstanceAccess =
|
||||
TImplicitThisForCall(FunctionCall fc) {
|
||||
fc.getTarget() instanceof MemberFunction and
|
||||
not exists(fc.getQualifier()) and
|
||||
not fc.getTarget().isStatic()
|
||||
not fc.getTarget().isStatic() and
|
||||
not fc.getTarget() instanceof Constructor
|
||||
}
|
||||
|
||||
private class InstanceAccess extends TInstanceAccess {
|
||||
|
||||
Reference in New Issue
Block a user