Skip to content

Instantly share code, notes, and snippets.

@divarvel
Created February 23, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divarvel/c919dea2e235e27c1289 to your computer and use it in GitHub Desktop.
Save divarvel/c919dea2e235e27c1289 to your computer and use it in GitHub Desktop.
class A() {
def b(c: C): Unit = ()
}
class C() {
def >>:(a: A): Unit = ()
}
object test {
val a = new A()
val c = new C()
a b c // a.b(c)
a >>: c // c.>>:(a)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment