Created
July 6, 2011 22:09
-
-
Save ahoy-jon/1068470 to your computer and use it in GitHub Desktop.
Product
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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