Add more tests for inline classes
#KT-27416 #KT-27513
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
inline class A(val b: String) {
|
||||
override fun toString(): String =
|
||||
buildString { append(b) }
|
||||
}
|
||||
|
||||
fun box() = A("OK").toString()
|
||||
Reference in New Issue
Block a user