Skip to content

Commit 8bcbeb1

Browse files
committed
Remove check for injecting before super() call. Fixes #2506
1 parent c1a1264 commit 8bcbeb1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/kotlin/platform/mixin/inspection/injector/InjectIntoConstructorInspection.kt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,6 @@ class InjectIntoConstructorInspection : MixinInspection() {
9797
)
9898
return
9999
}
100-
101-
val delegateCtorCall = targetMethod.findDelegateConstructorCall()
102-
if (delegateCtorCall != null &&
103-
instructions.any {
104-
val insnIndex = targetMethod.instructions.indexOf(it.insn)
105-
val delegateCtorIndex = targetMethod.instructions.indexOf(delegateCtorCall)
106-
insnIndex <= delegateCtorIndex
107-
}
108-
) {
109-
holder.registerProblem(
110-
problemElement,
111-
"Cannot inject before super() call",
112-
)
113-
return
114-
}
115100
}
116101
}
117102
}

0 commit comments

Comments
 (0)