JVM IR: fix noarg plugin for sealed class with existing noarg ctor
#KT-48111 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user