Created
April 4, 2012 23:31
-
-
Save splittingfield/2306562 to your computer and use it in GitHub Desktop.
Cute scala...
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
scala> case class A[S,T](s:Int,b:T)(f:(S,T)=>T,g:(S,T)=>T) | |
defined class A | |
scala> case class A[S:Manifest,T:Manifest](s:Int,b:T)(f:(S,T)=>T,g:(S,T)=>T) | |
<console>:5: error: case classes limited by implementation: maximum of 2 constructor parameter lists. | |
Because the Manifests are just sort of added as a third parameters list with implicits... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment