Created
November 14, 2013 18:10
-
-
Save Varriount/7471540 to your computer and use it in GitHub Desktop.
Fail for generic calling newSeq with a generic type
This file contains hidden or 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
proc test[T](number: int): seq[T] = | |
return newSeq[T](number) | |
var x = test[int](5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment