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:
committed by
Nikolay Krasko
parent
56d3f90a02
commit
d44bf27ec3
@@ -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
|
||||
Reference in New Issue
Block a user