We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a1264 commit 8bcbeb1Copy full SHA for 8bcbeb1
src/main/kotlin/platform/mixin/inspection/injector/InjectIntoConstructorInspection.kt
@@ -97,21 +97,6 @@ class InjectIntoConstructorInspection : MixinInspection() {
97
)
98
return
99
}
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
115
116
117
0 commit comments