Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.10 KB | None | 0 0
  1. operator fun Int.unaryPlus() = println(this)
  2.  
  3. fun main() {
  4.     + 1 // 1 does not get printed
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement