13 lines
138 B
Plaintext
Vendored
13 lines
138 B
Plaintext
Vendored
import test.AAA
|
|
|
|
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
|
|
} |