Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
Vendored
+3
-2
@@ -2,6 +2,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// JVM_TARGET: 1.8
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
class Cell<T>(val x: T)
|
||||
|
||||
@@ -9,8 +11,7 @@ interface IOk {
|
||||
fun ok(): String = "OK"
|
||||
}
|
||||
|
||||
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
|
||||
@kotlin.jvm.JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class InlineClass(val s: String) : IOk
|
||||
|
||||
fun test(cell: Cell<InlineClass>): String = cell.x.ok()
|
||||
|
||||
Reference in New Issue
Block a user