KT-20166: Replace type name when caret is at the end of param name

When caret is at the end ('f<caret>: Foo'), tokenAt was COLON,
not IDENTIFIER

#KT-20166 fixed
This commit is contained in:
Simon Ogorodnik
2017-10-21 04:17:05 +03:00
parent d12f5c79a1
commit 5778ace6b0
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,6 @@
class Foo
fun f(f<caret>: Foo)
// ELEMENT_TEXT: foo: Foo
// CHAR: '\t'
@@ -0,0 +1,6 @@
class Foo
fun f(foo: Foo)
// ELEMENT_TEXT: foo: Foo
// CHAR: '\t'