EA-105522, KT-20256: Fix TextRange.<init> "Invalid range specified"

Check when caret inside template, and don't try to create invalid
range then

 EA-105522 fixed
 #KT-20256 fixed
This commit is contained in:
Simon Ogorodnik
2017-10-21 03:38:24 +03:00
parent 31a1fb916a
commit cace6624e6
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,7 @@
fun foo() {
val aaa = ""
val y = "$a<caret>aaa"
}
// ELEMENT: aaa