JVM IR: fix noarg plugin for sealed class with existing noarg ctor

#KT-48111 Fixed
This commit is contained in:
Alexander Udalov
2021-08-17 18:24:51 +02:00
parent d3de0109ca
commit b1bce6a29e
4 changed files with 31 additions and 5 deletions
@@ -0,0 +1,14 @@
// WITH_RUNTIME
annotation class NoArg
@NoArg
sealed class MappedSuperClass
@NoArg
class ConcreteClass(val x: String) : MappedSuperClass()
fun box(): String {
ConcreteClass::class.java.getConstructor().newInstance()
return "OK"
}