Use original method signature to call accessor for hidden constructor
#KT-28855 Fixed Target versions 1.3.30
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
|
||||
class C<T>(val x: T, vararg ys: UInt) {
|
||||
val y0 = ys[0]
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val c = C("a", 42u)
|
||||
if (c.y0 != 42u) throw AssertionError()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user