JVM IR: do not hide constructor with inline class in anonymous object
#KT-45131 Fixed
This commit is contained in:
@@ -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"))()
|
||||
Reference in New Issue
Block a user