Created
October 12, 2018 20:56
-
-
Save jonnyzzz/5c354b11f011d37474d68d571f95f07f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Z { | |
operator fun plus(z:Z) = z | |
operator fun plusAssign(z:Z) = Unit | |
} | |
fun test() { | |
val x = Z() + Z() | |
x += Z() | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment