Introduce var/val postfix templates

#KT-4710 In Progress
This commit is contained in:
Denis Zharkov
2016-07-11 11:17:58 +03:00
committed by Nikolay Krasko
parent 7ba914f92a
commit b702886f0d
9 changed files with 60 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
fun bar() = 1
fun foo() {
val x = bar().val<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun bar() = 1
fun foo() {
val <caret>bar = bar()
val x = bar
}
+4
View File
@@ -0,0 +1,4 @@
fun bar() = 1
fun foo() {
val x = bar().var<caret>
}
+5
View File
@@ -0,0 +1,5 @@
fun bar() = 1
fun foo() {
var bar = bar()
val x = bar
}