Change Function Signature Fix: Do not render default values in overriding functions

#KT-8520 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-08 17:23:01 +03:00
parent 794127a38b
commit d5deb03292
4 changed files with 38 additions and 5 deletions
@@ -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
}
@@ -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
}