Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Add parameter to function 'component1'" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add parameter to function 'equals'" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public fun jet.Any?.equals(other: jet.Any?): jet.Boolean defined in jet
|
||||
|
||||
fun f(d: Any) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add parameter to function 'equals'" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public open fun equals(p0: jet.Any?): jet.Boolean defined in java.lang.Object
|
||||
|
||||
fun f(d: java.lang.Object) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add parameter to function 'component1'" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.AddFunctionParametersFix" "false"
|
||||
//ERROR: Too many arguments for internal final fun component1(): jet.Int defined in Data
|
||||
|
||||
data class Data(val i: Int) {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Remove parameter 'other'" "false"
|
||||
// "class org.jetbrains.jet.plugin.quickfix.RemoveFunctionParametersFix" "false"
|
||||
// ERROR: No value passed for parameter other
|
||||
|
||||
fun f(d: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user