This commit is contained in:
Araq 2015-03-15 20:36:07 +01:00
commit 13cdad8819
4 changed files with 22 additions and 5 deletions

View file

@ -0,0 +1,11 @@
discard """
output: '''@[0.9, 0.1]'''
"""
# bug #2304
type TV2*[T:SomeNumber] = array[0..1, T]
proc newV2T*[T](x, y: T=0): TV2[T] = [x, y]
let x = newV2T[float](0.9, 0.1)
echo(@x)