Show error hint when trying to refactor synthesized function

This commit is contained in:
Pavel V. Talanov
2013-10-15 18:04:53 +04:00
parent f032b6e236
commit 66cc9b2cc7
8 changed files with 54 additions and 8 deletions
@@ -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)
}