Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
+3
-2
@@ -3,13 +3,14 @@
|
||||
// IGNORE_BACKEND: JS, JS_IR, NATIVE
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
|
||||
class CharacterLiteral(private val prefix: NamelessString, private val s: NamelessString) {
|
||||
override fun toString(): String = "$prefix'$s'"
|
||||
}
|
||||
|
||||
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
|
||||
@kotlin.jvm.JvmInline
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class NamelessString(val b: ByteArray) {
|
||||
override fun toString(): String = String(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user