[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite
This commit is contained in:
committed by
TeamCityServer
parent
85949b387e
commit
cd890d5833
+3
-3
@@ -1,5 +1,5 @@
|
||||
fun nonlocals(b : Boolean) {
|
||||
a@<!UNUSED_LAMBDA_EXPRESSION!>{
|
||||
a@{
|
||||
fun foo() {
|
||||
if (b) {
|
||||
<!RETURN_NOT_ALLOWED!>return@a<!> 1 // The label must be resolved, but an error should be reported for a non-local return
|
||||
@@ -7,5 +7,5 @@ fun nonlocals(b : Boolean) {
|
||||
}
|
||||
|
||||
return@a 5
|
||||
}<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user