Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
Vendored
+3
-2
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
fun <T1> underlying(a: IC): T1 = bar(a) { it.value as T1 }
|
||||
|
||||
@@ -20,8 +22,7 @@ fun <T6> IC.extensionValue(): T6 = value as T6
|
||||
|
||||
fun <T7> normalValue(ic: IC): T7 = ic.value as T7
|
||||
|
||||
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
|
||||
@kotlin.jvm.JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class IC(val value: Int) {
|
||||
fun <T8> dispatchValue(): T8 = value as T8
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user