Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
+4
-2
@@ -1,6 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
|
||||
@kotlin.jvm.JvmInline
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class X(val s: String)
|
||||
fun foo(x: X, block: (X) -> String = { it.s }) = block(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user