Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created November 14, 2013 18:10
Show Gist options
  • Save Varriount/7471540 to your computer and use it in GitHub Desktop.
Save Varriount/7471540 to your computer and use it in GitHub Desktop.
Fail for generic calling newSeq with a generic type
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