Skip to content

Instantly share code, notes, and snippets.

@invkrh
Created September 25, 2017 09:22
Show Gist options
  • Save invkrh/e4dbb7060af511b2d4ab68c21d6b9218 to your computer and use it in GitHub Desktop.
Save invkrh/e4dbb7060af511b2d4ab68c21d6b9218 to your computer and use it in GitHub Desktop.
class A {
def say() = println(this.hashCode())
}
def fun(a: => A) = {
a.say()
a.say()
}
fun(new A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment