Skip to content

Instantly share code, notes, and snippets.

@tpolecat
Forked from anonymous/gist:6418105
Created September 2, 2013 23:19
Show Gist options
  • Save tpolecat/6418116 to your computer and use it in GitHub Desktop.
Save tpolecat/6418116 to your computer and use it in GitHub Desktop.
scala> def foo[A[_]] = 1
foo: [A[_]]=> Int
scala> foo[List]
res11: Int = 1
scala> foo[Int]
<console>:24: error: Int takes no type parameters, expected: one
foo[Int]
^
scala> foo[Any]
res13: Int = 1
scala> foo[Nothing]
res14: Int = 1
scala> wat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment