mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
9 lines
308 B
Plaintext
9 lines
308 B
Plaintext
// AFTER-WARNING: The value 'if (n > 0)<br> "> 0"<br> else<br> "<= 0"' assigned to 'val x: String defined in foo' is never used
|
|
// AFTER-WARNING: Variable 'x' is assigned but never accessed
|
|
fun foo(n: Int) {
|
|
<caret>val x: String
|
|
x = if (n > 0)
|
|
"> 0"
|
|
else
|
|
"<= 0"
|
|
} |