Skip to content

Instantly share code, notes, and snippets.

@ahoy-jon
Created July 6, 2011 22:09
Show Gist options
  • Save ahoy-jon/1068470 to your computer and use it in GitHub Desktop.
Save ahoy-jon/1068470 to your computer and use it in GitHub Desktop.
Product
abstract sealed class C(a: A, b: B) extends Product2[A, B] {
def _1 = a
def _2 = b
}
case class D(a: A, b:B, e:E) extends C(a,b)
object D extends MyTrait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment