Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
+3
-1
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// TARGET_BACKEND: JVM
|
||||
@@ -10,7 +12,7 @@ interface Path {
|
||||
fun Int.extension(s: String = "K") = "${this}extension$s"
|
||||
}
|
||||
|
||||
@JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class RealPath(val x: Int) : Path
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// !JVM_DEFAULT_MODE: all
|
||||
// TARGET_BACKEND: JVM
|
||||
@@ -10,7 +12,7 @@ interface Path {
|
||||
fun Int.extension(s: String = "K") = "${this}extension$s"
|
||||
}
|
||||
|
||||
@JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class RealPath(val x: Int) : Path
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// !JVM_DEFAULT_MODE: compatibility
|
||||
// TARGET_BACKEND: JVM
|
||||
@@ -10,7 +12,7 @@ interface Path {
|
||||
fun Int.extension(s: String = "K") = "${this}extension$s"
|
||||
}
|
||||
|
||||
@JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class RealPath(val x: Int) : Path
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM
|
||||
@@ -9,7 +11,7 @@ interface Path {
|
||||
fun Int.extension(s: String = "K") = "${this}extension$s"
|
||||
}
|
||||
|
||||
@JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class RealPath(val x: Int) : Path
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user