Rename: Initial support of naming conventions
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class A(val n: Int) {
|
||||
fun foo(other: A): Int = n.compareTo(other.n)
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A(0) foo A(1)
|
||||
A(0).foo(A(1)) < 0
|
||||
A(0).foo(A(1)) <= 0
|
||||
A(0).foo(A(1)) > 0
|
||||
A(0).foo(A(1)) >= 0
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class A(val n: Int) {
|
||||
fun compareTo(other: A): Int = n.compareTo(other.n)
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A(0) compareTo A(1)
|
||||
A(0) < A(1)
|
||||
A(0) <= A(1)
|
||||
A(0) > A(1)
|
||||
A(0) >= A(1)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classFQN": "A",
|
||||
"oldName": "compareTo",
|
||||
"newName": "foo",
|
||||
"mainFile": "compareTo.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user