mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
17 lines
286 B
Kotlin
Vendored
17 lines
286 B
Kotlin
Vendored
fun testAugmentedMemberAssignment(d: dynamic) {
|
|
d.m += "+="
|
|
d.m -= "-="
|
|
d.m *= "*="
|
|
d.m /= "/="
|
|
d.m %= "%="
|
|
}
|
|
|
|
// see KT-29768
|
|
fun testSafeAugmentedMemberAssignment(d: dynamic) {
|
|
d?.m += "+="
|
|
d?.m -= "-="
|
|
d?.m *= "*="
|
|
d?.m /= "/="
|
|
d?.m %= "%="
|
|
}
|