Pull Up: Drop default parameter values in function which becomes overriding. Disable function with default values if target class is the Java one

#KT-9833 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-02 17:14:58 +03:00
parent 80051b8303
commit 8f8acf7a83
11 changed files with 90 additions and 15 deletions
@@ -0,0 +1,15 @@
open class A {
}
class <caret>B : A() {
// INFO: {"checked": "true", "toAbstract": "true"}
fun foo(n: Int = 1) {
}
}
fun test() {
B().foo()
B().foo(2)
}