Skip to content

Instantly share code, notes, and snippets.

@PkmX
Last active December 10, 2015 16:38
Show Gist options
  • Save PkmX/4462312 to your computer and use it in GitHub Desktop.
Save PkmX/4462312 to your computer and use it in GitHub Desktop.
class Foo[A, B] {
def apply(f: (A) => Unit) {}
// Not OK! Duplicate method after type erasure.
// def apply(f: (B) => Unit) {}
// OK, but seriously, scala?
def apply(f: (B) => Unit)(implicit dummy: DummyImplicit) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment