Condition of 'if' expression is constant: remove else keyword if needed
#KT-34713 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
1b0fac4a67
commit
37277d71de
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(x: Int) {}
|
||||
|
||||
fun bar(s: String?) {
|
||||
if (s == null) {
|
||||
1
|
||||
}
|
||||
else {
|
||||
3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user