Add incremental tests for parameters with default values
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
fun argumentAdded(x: Int = 1) {}
|
||||
fun argumentRemoved() {}
|
||||
|
||||
fun valueAdded(x: Int = 3) {}
|
||||
fun valueRemoved(x: Int) {}
|
||||
fun valueChanged(x: Int = 6) {}
|
||||
}
|
||||
|
||||
class ConstructorValueAdded(x: Int = 7)
|
||||
class ConstructorValueRemoved(x: Int)
|
||||
class ConstructorValueChanged(x: Int = 20)
|
||||
|
||||
class ConstructorArgumentAdded(x: Int = 9)
|
||||
class ConstructorArgumentRemoved()
|
||||
@@ -0,0 +1,17 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
fun argumentAdded() {}
|
||||
fun argumentRemoved(x: Int = 2) {}
|
||||
|
||||
fun valueAdded(x: Int) {}
|
||||
fun valueRemoved(x: Int = 4) {}
|
||||
fun valueChanged(x: Int = 5) {}
|
||||
}
|
||||
|
||||
class ConstructorValueAdded(x: Int)
|
||||
class ConstructorValueRemoved(x: Int = 8)
|
||||
class ConstructorValueChanged(x: Int = 19)
|
||||
|
||||
class ConstructorArgumentAdded()
|
||||
class ConstructorArgumentRemoved(x: Int = 10)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
changes in test/A: MEMBERS
|
||||
[argumentAdded, argumentRemoved, valueAdded, valueRemoved]
|
||||
changes in test/ConstructorArgumentAdded: CLASS_SIGNATURE
|
||||
changes in test/ConstructorArgumentRemoved: CLASS_SIGNATURE
|
||||
changes in test/ConstructorValueAdded: CLASS_SIGNATURE
|
||||
changes in test/ConstructorValueChanged: NONE
|
||||
changes in test/ConstructorValueRemoved: CLASS_SIGNATURE
|
||||
Reference in New Issue
Block a user