[FIR] Add NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY diagnostic
This commit is contained in:
committed by
teamcityserver
parent
151478aa27
commit
a6984c5198
@@ -150,7 +150,7 @@ fun illegalWhenBlock(a: Any): Int {
|
||||
is Int -> return a
|
||||
is String -> return <!RETURN_TYPE_MISMATCH!>a<!>
|
||||
}
|
||||
}
|
||||
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
||||
fun declarations(a: Any?) {
|
||||
if (a is String) {
|
||||
val p4: String = a
|
||||
|
||||
Reference in New Issue
Block a user