Skip to content

Instantly share code, notes, and snippets.

@splittingfield
Created April 4, 2012 23:31
Show Gist options
  • Save splittingfield/2306562 to your computer and use it in GitHub Desktop.
Save splittingfield/2306562 to your computer and use it in GitHub Desktop.
Cute scala...
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