JVM IR: add isInlineClassType, use it instead of isInlined

This commit is contained in:
Alexander Udalov
2021-03-24 22:31:12 +01:00
parent 770401801b
commit c17b6c59f8
18 changed files with 83 additions and 19 deletions
@@ -0,0 +1,8 @@
// IGNORE_BACKEND: JVM
interface X
inline class Z(val value: Int) : X
fun <T> test(t: T) where T : X, T : Z = t as? Int
fun box(): String = if (test(Z(42)) != null) "fail" else "OK"