Introduce Refactorings: Implement trimming renderer for expression
chooser. Do not suggest parenthesized expressions #KT-9028 Fixed
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
interface T {
|
||||
fun foo(a: () -> Any): T = this
|
||||
}
|
||||
|
||||
fun foo(t: T) {
|
||||
t.foo { <caret>1 }
|
||||
.foo {2}
|
||||
.foo({ 3 })
|
||||
}
|
||||
|
||||
/*
|
||||
1
|
||||
{ 1 }
|
||||
t.foo{...}
|
||||
t.foo{...}.foo{...}
|
||||
t.foo{...}.foo{...}.foo(...)
|
||||
*/
|
||||
Reference in New Issue
Block a user