Drop result value if it's not needed

This commit is contained in:
Valentin Kipyatkov
2016-11-10 21:14:25 +03:00
parent adbece82ef
commit 55979aca74
14 changed files with 64 additions and 14 deletions
@@ -6,6 +6,6 @@ val File.prop: String
get() = absolutePath
fun foo(file: File) {
file.prop<caret>
val v = file.prop<caret>
}
@@ -6,6 +6,6 @@ val File.prop: String
get() = absolutePath
fun foo(file: File) {
file.absolutePath
val v = file.absolutePath
}
@@ -3,5 +3,5 @@
fun oldFun(p: Int): Int = p
fun foo() {
<caret>oldFun(0)
val v = <caret>oldFun(0)
}
@@ -3,5 +3,5 @@
fun oldFun(p: Int): Int = p
fun foo() {
<caret>0
val v = 0
}