[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
@@ -1,7 +1,7 @@
fun box() : String {
test {
return@box "123"
<!RETURN_NOT_ALLOWED!>return@box<!> "123"
}
return "OK"
@@ -1,11 +0,0 @@
fun box() : String {
test {
return@box "123"
}
return "OK"
}
<!NOTHING_TO_INLINE!>inline<!> fun test(p: Any) {
p.toString()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun box() : String {
test {
<!RETURN_NOT_ALLOWED!>return@box<!> "123"