[FIR] Unwrap captured types in target type of SAM conversion

^KT-66256 Fixed
This commit is contained in:
Dmitriy Novozhilov
2024-03-01 14:06:27 +02:00
committed by Space Team
parent 690f39b91c
commit b875ae774e
28 changed files with 185 additions and 26 deletions
+18
View File
@@ -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"
}