14 lines
215 B
Kotlin
Vendored
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"
|
|
}
|