[Test] Explicitly enable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite
This commit is contained in:
committed by
TeamCityServer
parent
a9ff030c73
commit
85949b387e
compiler/testData/diagnostics/tests/functionLiterals/return/LocalReturnUnitWithBodyExpression.fir.kt
Vendored
+3
-1
@@ -1,7 +1,9 @@
|
||||
// !DIAGNOSTICS: +UNUSED_EXPRESSION
|
||||
|
||||
val flag = true
|
||||
|
||||
// type of lambda was checked by txt
|
||||
val a = b@ { // () -> Unit
|
||||
if (flag) return@b
|
||||
else 54
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+3
-1
@@ -1,7 +1,9 @@
|
||||
// !DIAGNOSTICS: +UNUSED_EXPRESSION
|
||||
|
||||
val flag = true
|
||||
|
||||
// type of lambda was checked by txt
|
||||
val a = b@ { // () -> Unit
|
||||
if (flag) return@b
|
||||
else <!UNUSED_EXPRESSION!>54<!>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// !DIAGNOSICS: +UNUSED_LAMBDA_EXPRESSION, +UNUSED_VARIABLE
|
||||
|
||||
fun unusedLiteral(){
|
||||
<!UNUSED_LAMBDA_EXPRESSION!>{ ->
|
||||
val <!UNUSED_VARIABLE!>i<!> = 1
|
||||
@@ -9,4 +11,4 @@ fun unusedLiteralInDoWhile(){
|
||||
do<!UNUSED_LAMBDA_EXPRESSION!>{ ->
|
||||
val <!UNUSED_VARIABLE!>i<!> = 1
|
||||
}<!> while(false)
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// !DIAGNOSICS: +UNUSED_LAMBDA_EXPRESSION
|
||||
|
||||
fun main() {
|
||||
"".run {
|
||||
{}
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// !DIAGNOSICS: +UNUSED_LAMBDA_EXPRESSION
|
||||
|
||||
fun main() {
|
||||
"".run {
|
||||
<!UNUSED_LAMBDA_EXPRESSION!>{}<!>
|
||||
|
||||
Reference in New Issue
Block a user