Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt35914.kt
T

14 lines
215 B
Kotlin
Vendored

// !LANGUAGE: +NewInference
// WITH_RUNTIME
class Inv<T>
fun <T> bar(x: Inv<T>.() -> Unit) = x
fun box(): String {
listOf(
bar<Char> { },
bar { } // the problem is here
)
return "OK"
}