Drop result value if it's not needed
This commit is contained in:
+2
-2
@@ -3,6 +3,6 @@ fun <caret>f(p: Int) = p + p
|
||||
fun complexFun(): Int {
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
f(complexFun())
|
||||
fun g(): Int {
|
||||
return f(complexFun())
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
fun complexFun(): Int {
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
fun g(): Int {
|
||||
val p = complexFun()
|
||||
p + p
|
||||
return p + p
|
||||
}
|
||||
Reference in New Issue
Block a user