[FIR] Implement IMPLICIT_NOTHING_*_TYPE diagnostics
This commit is contained in:
committed by
Space Team
parent
0e84bf2053
commit
1b42298025
+2
-2
@@ -4,8 +4,8 @@
|
||||
// TESTCASE NUMBER: 1
|
||||
// UNEXPECTED BEHAVIOUR
|
||||
// ISSUES : KT-35545
|
||||
fun case1(a: Boolean) = run { println("d"); return <!RETURN_TYPE_MISMATCH!>true<!> }
|
||||
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>case1<!>(a: Boolean) = run { println("d"); return <!RETURN_TYPE_MISMATCH!>true<!> }
|
||||
|
||||
// TESTCASE NUMBER: 2
|
||||
val case2
|
||||
val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>case2<!>
|
||||
get() = run { println("d"); return <!RETURN_TYPE_MISMATCH!>true<!> }
|
||||
|
||||
Reference in New Issue
Block a user