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