[FIR] Fix inconsistent RETURN_TYPE_MISMATCH and TYPE_MISMATCH reporting on functions and properties
^KT-51203 Fixed
This commit is contained in:
+1
-1
@@ -9,4 +9,4 @@ fun case1(a: Boolean) = run { println("d"); return <!RETURN_TYPE_MISMATCH!>true<
|
||||
|
||||
// TESTCASE NUMBER: 2
|
||||
val case2
|
||||
get() = run { println("d"); return true }
|
||||
get() = run { println("d"); return <!RETURN_TYPE_MISMATCH!>true<!> }
|
||||
|
||||
Vendored
+1
-1
@@ -30,7 +30,7 @@ class Case6 {
|
||||
|
||||
// TESTCASE NUMBER: 7
|
||||
class Case7 {
|
||||
val x: Int get() = null
|
||||
val x: Int get() = <!NULL_FOR_NONNULL_TYPE!>null<!>
|
||||
}
|
||||
|
||||
// TESTCASE NUMBER: 8
|
||||
|
||||
Reference in New Issue
Block a user