Fix bridge methods generation when inline class types are used
This commit is contained in:
+6
@@ -13,6 +13,10 @@ inline class MyUIntArray(private val storage: IntArray) : Collection<MyUInt> {
|
||||
override fun isEmpty(): Boolean = TODO()
|
||||
}
|
||||
|
||||
fun <T> checkBoxed(c: Collection<T>, element: T): Boolean {
|
||||
return c.contains(element) && c.containsAll(listOf(element))
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val uints = MyUIntArray(intArrayOf(0, 1, 42))
|
||||
|
||||
@@ -21,5 +25,7 @@ fun box(): String {
|
||||
val ints = listOf(MyUInt(1), MyUInt(0))
|
||||
if (!uints.containsAll(ints)) return "Fail 2"
|
||||
|
||||
if (!checkBoxed(uints, MyUInt(0))) return "Fail 3"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user