Surround with braces when completing backing field in string template

This commit is contained in:
Valentin Kipyatkov
2015-03-06 16:12:12 +03:00
parent 620fb8683b
commit de7b4dc681
4 changed files with 31 additions and 2 deletions
@@ -0,0 +1,10 @@
class C {
var property = "abc"
get() = $property + 1
fun foo(){
"$<caret>"
}
}
// ELEMENT: $property
@@ -0,0 +1,10 @@
class C {
var property = "abc"
get() = $property + 1
fun foo(){
"${$property<caret>}"
}
}
// ELEMENT: $property