Show error hint when trying to refactor synthesized function
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Add parameter to function 'component1'" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
fun usage(d: Data) {
|
||||
d.component1(2)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add parameter to function 'component1'" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
fun usage(d: Data) {
|
||||
d.component1(<caret>2)
|
||||
}
|
||||
Reference in New Issue
Block a user