[FIR] Report error about ambiguous anonymous type approximation in type arguments of implicit return type of function

^KT-33917
^KT-56491 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-02-08 13:18:59 +02:00
committed by Space Team
parent 3c42521ce7
commit 393f880322
2 changed files with 20 additions and 4 deletions
@@ -34,11 +34,11 @@ private inline fun foo22(crossinline f: () -> Int) = Inv(Inv(object : I1 {
fun bar(): Int = f()
}
private inline fun foo31(crossinline f: () -> Int) = Inv(object : I1, I2 {
<!AMBIGUOUS_ANONYMOUS_TYPE_INFERRED!>private inline fun foo31(crossinline f: () -> Int)<!> = Inv(object : I1, I2 {
fun bar(): Int = f()
})
private inline fun foo32(crossinline f: () -> Int) = Inv(Inv(object : I1, I2 {
<!AMBIGUOUS_ANONYMOUS_TYPE_INFERRED!>private inline fun foo32(crossinline f: () -> Int)<!> = Inv(Inv(object : I1, I2 {
fun bar(): Int = f()
}))