Create from Usage: Always insert parentheses around secondary constructor parameter list

#KT-10912 Fixed
This commit is contained in:
Alexey Sedunov
2016-02-05 16:12:45 +03:00
parent 8e81d0ce5f
commit cc2a65e874
4 changed files with 22 additions and 1 deletions
@@ -0,0 +1,4 @@
// "Create secondary constructor" "true"
// ERROR: Primary constructor call expected
class Creation(val f: Int)
val v = Creation(<caret>)
@@ -0,0 +1,9 @@
// "Create secondary constructor" "true"
// ERROR: Primary constructor call expected
class Creation(val f: Int) {
constructor() {
//To change body of created constructors use File | Settings | File Templates.
}
}
val v = Creation()