Skip to content

Instantly share code, notes, and snippets.

@jonnyzzz
Created October 12, 2018 20:56
Show Gist options
  • Save jonnyzzz/5c354b11f011d37474d68d571f95f07f to your computer and use it in GitHub Desktop.
Save jonnyzzz/5c354b11f011d37474d68d571f95f07f to your computer and use it in GitHub Desktop.
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