[FIR] Unwrap captured types in target type of SAM conversion
^KT-66256 Fixed
This commit is contained in:
committed by
Space Team
parent
690f39b91c
commit
b875ae774e
@@ -0,0 +1,18 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user