Create from Usage: Always insert parentheses around secondary constructor parameter list
#KT-10912 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// "Create secondary constructor" "true"
|
||||
// ERROR: Primary constructor call expected
|
||||
class Creation(val f: Int)
|
||||
val v = Creation(<caret>)
|
||||
+9
@@ -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()
|
||||
Reference in New Issue
Block a user