fixes 'newSeq[T]' instantiation bug

This commit is contained in:
Araq
2014-02-09 00:41:53 +01:00
parent c3adc19f47
commit dbc8aa60e3
5 changed files with 27 additions and 11 deletions

View File

@@ -6,6 +6,18 @@ var a: PA[string]
new(a)
a.field = "some string"
proc someOther[T](len: string): seq[T] = discard
proc someOther[T](len: int): seq[T] = echo "we"
proc foo[T](x: T) =
var s = someOther[T](34)
#newSeq[T](34)
foo 23
when false:
# Compiles unless you use var a: PA[string]
type