Introduce Refactorings: Implement trimming renderer for expression

chooser. Do not suggest parenthesized expressions
 #KT-9028 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-08 21:16:01 +03:00
parent ae2fc19fe5
commit f87d2d1fcc
11 changed files with 458 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
interface T {
fun foo(t: T) = t
}
fun foo() {
object : T {
val x = 1
}.foo(<caret>object : T {
val x = 2
})
}
/*
object : T {...}
object : T {...}.foo(...)
*/