Introduce FirInitializerTypeMismatchChecker
This commit is contained in:
+2
-2
@@ -10,9 +10,9 @@ fun noCoercionLastExpressionUsedAsReturnArgument() {
|
||||
}
|
||||
|
||||
fun noCoercionBlockHasExplicitType() {
|
||||
val b: () -> Int = {
|
||||
val b: () -> Int = <!INITIALIZER_TYPE_MISMATCH!>{
|
||||
if (true) 42
|
||||
}
|
||||
}<!>
|
||||
}
|
||||
|
||||
fun noCoercionBlockHasExplicitReturn() {
|
||||
|
||||
Reference in New Issue
Block a user