KT-7135 Java to Kotlin converter should update usages in Java and Koltin code in the rest of the project
#KT-7135 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun foo1(a: AAA) {
|
||||
a.setX(a.getX() + 1)
|
||||
}
|
||||
|
||||
fun foo2(a: AAA?) {
|
||||
a?.setX((a?.getX() ?: 0) + 1)
|
||||
}
|
||||
|
||||
fun AAA.foo() {
|
||||
setX(getX() + 1)
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fun foo1(a: AAA) {
|
||||
a.x = a.x + 1
|
||||
}
|
||||
|
||||
fun foo2(a: AAA?) {
|
||||
a?.x = (a?.x ?: 0) + 1
|
||||
}
|
||||
|
||||
fun AAA.foo() {
|
||||
x = x + 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
void foo(AAA a) {
|
||||
a.setX(a.getX() + 1)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
void foo(AAA a) {
|
||||
a.setX(a.getX() + 1)
|
||||
}
|
||||
Reference in New Issue
Block a user