Skip to content

Instantly share code, notes, and snippets.

@alexnask
Created June 5, 2012 19:25
Show Gist options
  • Select an option

  • Save alexnask/2877174 to your computer and use it in GitHub Desktop.

Select an option

Save alexnask/2877174 to your computer and use it in GitHub Desktop.
Operator non-inheritance
Foo: class {}
Bar: class extends Foo {}
operator + <T> (left: Foo, right: T) {
"OHAI" println()
}
bar: Bar
bar + 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment