Determine underlying property of inline class by its name
Previous way to distinguish "primary constructor properties" from other properties wasn't correct for deserialized properties, because currently we don't have special information about this in metadata
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
|
||||
@Suppress("UNSUPPORTED_FEATURE")
|
||||
inline class Foo(val x: IntArray) {
|
||||
val size: Int get() = x.size
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import a.*
|
||||
|
||||
fun box(): String {
|
||||
val a = Foo(intArrayOf(3, 4))
|
||||
if (a.size != 2) return "Fail"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user