Change Function Signature Fix: Do not render default values in overriding functions
#KT-8520 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Change function signature to 'fun foo(a: Int, b: String): Any?'" "true"
|
||||
interface A {
|
||||
public fun foo(a: Int = 1, b: String = "str"): Any?
|
||||
}
|
||||
|
||||
class B : A {
|
||||
public override<caret> fun foo(a: Int): Any? = null
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Change function signature to 'fun foo(a: Int, b: String): Any?'" "true"
|
||||
interface A {
|
||||
public fun foo(a: Int = 1, b: String = "str"): Any?
|
||||
}
|
||||
|
||||
class B : A {
|
||||
public override<caret> fun foo(a: Int, b: String): Any? = null
|
||||
}
|
||||
Reference in New Issue
Block a user