[FIR] Don't miss RETURN_NOT_ALLOWED

^KT-59914 Fixed
This commit is contained in:
Nikolay Lunyak
2023-09-01 16:20:45 +03:00
committed by Space Team
parent 009cda0c60
commit cd392ebe69
9 changed files with 12 additions and 17 deletions
@@ -19,7 +19,7 @@ val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>b<!> = <!RETURN_NOT_ALLOWED!>return<!> 1
val c = doSmth(if (true) 3 else <!RETURN_NOT_ALLOWED!>return<!>)
fun f(mi: Int = if (true) 0 else return) {}
fun f(mi: Int = if (true) 0 else <!RETURN_NOT_ALLOWED!>return<!>) {}
fun doSmth(i: Int) {
}