Completion of keywords (like constructor) doesn't insert parentheses/braces if they're already there

#KT-15603 Fixed
 #KT-13524 Fixed
This commit is contained in:
Kirill Rakhman
2017-04-10 23:08:42 +02:00
committed by Nikolay Krasko
parent 56d3f90a02
commit d44bf27ec3
7 changed files with 58 additions and 4 deletions
@@ -0,0 +1,5 @@
class C c<caret>() {
}
// ELEMENT: constructor
@@ -0,0 +1,5 @@
class C constructor(<caret>) {
}
// ELEMENT: constructor
@@ -0,0 +1,6 @@
fun other(a: Any) {
i<caret>
(a as Int).let { println(a + 12) }
}
// ELEMENT: if
@@ -0,0 +1,6 @@
fun other(a: Any) {
if (<caret>)
(a as Int).let { println(a + 12) }
}
// ELEMENT: if