ChangeFunctionSignatureFix: fix wrong result
#KT-32001 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Add parameter to function 'called'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
// WITH_NEW_INFERENCE
|
||||
|
||||
fun caller() {
|
||||
called(<caret>setOf(1, 2, 3))
|
||||
}
|
||||
|
||||
fun called() {}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Add parameter to function 'called'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
// WITH_NEW_INFERENCE
|
||||
|
||||
fun caller() {
|
||||
called(<caret>setOf(1, 2, 3))
|
||||
}
|
||||
|
||||
fun called(of: Set<Int>) {}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Add parameter to function 'called'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
// !WITH_NEW_INFERENCE
|
||||
|
||||
fun caller() {
|
||||
called(<caret>setOf(1, 2, 3))
|
||||
}
|
||||
|
||||
fun called() {}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Add parameter to function 'called'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
// !WITH_NEW_INFERENCE
|
||||
|
||||
fun caller() {
|
||||
called(<caret>setOf(1, 2, 3))
|
||||
}
|
||||
|
||||
fun called(of: Set<Int>) {}
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change the signature of function 'doSmthWithChild'" "true"
|
||||
// "Add parameter to function 'doSmthWithChild'" "true"
|
||||
// DISABLE-ERRORS
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
||||
|
||||
|
||||
Reference in New Issue
Block a user