Fixed ReplaceWith quickfix not working when synthetic extensions are used in the pattern

This commit is contained in:
Valentin Kipyatkov
2015-09-01 15:51:19 +03:00
parent 16650e8f5c
commit 37ed77467f
8 changed files with 46 additions and 22 deletions
@@ -0,0 +1,11 @@
// "Replace with 'absolutePath'" "true"
import java.io.File
@deprecated("", ReplaceWith("absolutePath"))
val File.prop: String
get() = absolutePath
fun foo(file: File) {
file.prop<caret>
}
@@ -0,0 +1,11 @@
// "Replace with 'absolutePath'" "true"
import java.io.File
@deprecated("", ReplaceWith("absolutePath"))
val File.prop: String
get() = absolutePath
fun foo(file: File) {
file.absolutePath
}