Skip to content

Commit

Permalink
Don't add the no-args constructor to the file (#19)
Browse files Browse the repository at this point in the history
This was never necessary.

Co-authored-by: Jesse Wilson <[email protected]>
  • Loading branch information
swankjesse and squarejesse authored Oct 12, 2024
1 parent 1393ab0 commit 62d4736
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ internal class ClassSpecializer(
superConstructor: IrConstructor,
arguments: List<Argument>,
) {
val constructor = original.addConstructor {
original.addConstructor {
initDefaults(original)
}.apply {
irConstructorBody(pluginContext) { statements ->
Expand All @@ -160,7 +160,5 @@ internal class ClassSpecializer(
}
}
}

originalParent.addDeclaration(constructor)
}
}

0 comments on commit 62d4736

Please sign in to comment.