Support generating computable properties inside inline classes
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
inline class UIntArray(private val intArray: IntArray) {
|
||||
val size get() = intArray.size
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val array = UIntArray(intArrayOf(1, 2, 3))
|
||||
return if (array.size != 3) "fail" else "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user