JVM IR: do not hide constructor with inline class in anonymous object

#KT-45131 Fixed
This commit is contained in:
Alexander Udalov
2021-02-24 19:58:27 +01:00
parent b026de768d
commit b417786fd4
13 changed files with 80 additions and 3 deletions
@@ -0,0 +1,16 @@
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline class IC(val value: Any)
inline fun <reified T> f(a: IC): () -> T = {
a.value as T
}
// FILE: 2.kt
import test.*
fun box(): String = f<String>(IC("OK"))()