[FIR] Don't miss RETURN_NOT_ALLOWED
^KT-59914 Fixed
This commit is contained in:
committed by
Space Team
parent
009cda0c60
commit
cd392ebe69
+1
-1
@@ -1,7 +1,7 @@
|
||||
|
||||
fun box() : String {
|
||||
test {
|
||||
return@box "123"
|
||||
<!RETURN_NOT_ALLOWED!>return@box<!> "123"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
fun box() : String {
|
||||
test {
|
||||
return@box "123"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
<!NOTHING_TO_INLINE!>inline<!> fun test(p: Any) {
|
||||
p.toString()
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun box() : String {
|
||||
test {
|
||||
<!RETURN_NOT_ALLOWED!>return@box<!> "123"
|
||||
|
||||
Reference in New Issue
Block a user