Add quick-fix for default parameter value removal #KT-25146 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a059d50c8f
commit
1b1e503716
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove default parameter value" "true"
|
||||
// DISABLE-ERRORS
|
||||
interface Foo {
|
||||
fun test(x: Int, y: Int)
|
||||
}
|
||||
|
||||
expect class Bar : Foo {
|
||||
override fun test(x: Int, y: Int)
|
||||
}
|
||||
|
||||
actual class Bar : Foo {
|
||||
actual override fun test(x: Int, y: Int = 1<caret>) {}
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove default parameter value" "true"
|
||||
// DISABLE-ERRORS
|
||||
interface Foo {
|
||||
fun test(x: Int, y: Int)
|
||||
}
|
||||
|
||||
expect class Bar : Foo {
|
||||
override fun test(x: Int, y: Int)
|
||||
}
|
||||
|
||||
actual class Bar : Foo {
|
||||
actual override fun test(x: Int, y: Int) {}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Remove default parameter value" "true"
|
||||
open class A {
|
||||
open fun foo(x: Int, y: Int) {}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun foo(x : Int = 1<caret>, y: Int) {}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Remove default parameter value" "true"
|
||||
open class A {
|
||||
open fun foo(x: Int, y: Int) {}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun foo(x : Int, y: Int) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Remove default parameter value" "true"
|
||||
open class A {
|
||||
open fun foo(x: Int, y: Int) {}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun foo(x : Int /* comment1 */ = /* comment2 */ 1<caret>, y: Int) {}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Remove default parameter value" "true"
|
||||
open class A {
|
||||
open fun foo(x: Int, y: Int) {}
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun foo(x : Int /* comment1 */ /* comment2 */, y: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user