b875ae774e
^KT-66256 Fixed
19 lines
225 B
Kotlin
Vendored
19 lines
225 B
Kotlin
Vendored
// ISSUE: KT-66256
|
|
|
|
fun interface Element {
|
|
fun invoke()
|
|
}
|
|
|
|
class Container<T> {
|
|
fun add(arg: T) {}
|
|
}
|
|
|
|
fun test(c: Container<in Element>) {
|
|
c.add({})
|
|
}
|
|
|
|
fun box(): String {
|
|
test(Container())
|
|
return "OK"
|
|
}
|