[Test] Explicitly enable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite

This commit is contained in:
Dmitriy Novozhilov
2021-03-29 12:04:32 +03:00
committed by TeamCityServer
parent a9ff030c73
commit 85949b387e
22 changed files with 42 additions and 11 deletions
@@ -1,8 +1,9 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// !DIAGNOSICS: +UNUSED_VARIABLE
fun foo(): Any = 42
fun test() {
when (val <!UNUSED_VARIABLE!>x<!> = foo()) {
}
}
}