Created
July 1, 2012 12:06
-
-
Save seraphr/3028192 to your computer and use it in GitHub Desktop.
ScalaGenerics...
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
class Container[_X] | |
def con[_Elem, _Con <: Container[_Elem]](a: _Con): _Con = a | |
// inferred type arguments [Nothing,Container[String]] do not conform to method con's type parameter bounds [_Elem,_Con <: Container[_Elem]] | |
con(new Container[String]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment