Skip to content

Instantly share code, notes, and snippets.

@machisuji
Created January 17, 2012 13:05
Show Gist options
  • Select an option

  • Save machisuji/1626568 to your computer and use it in GitHub Desktop.

Select an option

Save machisuji/1626568 to your computer and use it in GitHub Desktop.
I take every opportunity to avoid actual work.
trait Wubs {
def WUB(wub: Wubs = this) = this
def W(wub: Wubs = this) = this
def WEEOOOOO(wub: Wubs = this) = this
def -(wub: Wubs = this) = this
}
object WUB extends Wubs
object W extends Wubs
WUB WUB WUB WEEOOOOO W-W-W-W-WUB WUB WUB
// -> res0: Wubs = WUB$@4e433359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment