No implicit instances for constructor call

This commit is contained in:
Pavel Avgustinov
2019-07-08 12:19:44 +01:00
committed by Jonas Jensen
parent 04454ef184
commit 15b56d93bd

View File

@@ -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 {