Unnecessary local variable: highlight with INFORMATION level when initializer has any multi-line blocks (#3359)
#KT-26752 Fixed
This commit is contained in:
committed by
GitHub
parent
e82857996f
commit
b9a4b60b93
@@ -0,0 +1,8 @@
|
||||
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
|
||||
fun test(b: Boolean): Int {
|
||||
return if (b) foo() else bar()
|
||||
}
|
||||
|
||||
fun foo() = 1
|
||||
|
||||
fun bar() = 2
|
||||
Reference in New Issue
Block a user