[Wasm] Fix invalid cast generation for inline classes

This commit is contained in:
Igor Yakovlev
2023-01-03 19:24:55 +01:00
committed by teamcity
parent 1fa7c7119b
commit f7940a2d46
12 changed files with 67 additions and 10 deletions
@@ -0,0 +1,8 @@
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
inline class X(val i: Int)
fun unbox(x: X?): Int = checkNotNull(x).i
fun box(): String = if (unbox(X(42)) == 42) "OK" else "Fail"