Create from Usage: Generate secondary constructors by call expressions
This commit is contained in:
+1
@@ -2,6 +2,7 @@
|
||||
// ACTION: Create function 'Foo'
|
||||
// ACTION: Add parameter to constructor 'Foo'
|
||||
// ACTION: Split property declaration
|
||||
// ACTION: Create secondary constructor
|
||||
// ERROR: Too many arguments for public constructor Foo(a: kotlin.Int) defined in Foo
|
||||
|
||||
class Foo(a: Int)
|
||||
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
// ACTION: Create function 'Foo'
|
||||
// ACTION: Remove parameter 's'
|
||||
// ACTION: Split property declaration
|
||||
// ACTION: Create secondary constructor
|
||||
// ERROR: No value passed for parameter s
|
||||
|
||||
class Foo(i: Int, s: String)
|
||||
|
||||
Reference in New Issue
Block a user