[FIR] Revert: Fix K2: Introduced AMBIGUOUS_ANONYMOUS_TYPE_INFERRED
This reverts commit d7adc0ce32.
Merge-request: KT-MR-12569
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
90102ad8b7
commit
da1fa8fce4
+6
@@ -70,6 +70,12 @@ object FirAmbiguousAnonymousTypeChecker : FirBasicDeclarationChecker() {
|
||||
context
|
||||
)
|
||||
}
|
||||
for (typeArgument in type.typeArguments) {
|
||||
checkTypeAndArguments(
|
||||
typeArgument.type ?: continue,
|
||||
context, reporter, reportOn
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private val FirBlock.singleExpressionType
|
||||
|
||||
+2
-2
@@ -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()
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user