diff options
author | Araq <rumpf_a@web.de> | 2013-11-29 20:42:12 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-11-29 20:42:12 +0100 |
commit | 2dcbc6493a8bcebc7dc9364b4a834853e1263639 (patch) | |
tree | 1ec88f7165d73164481337e36aca8d6529f0c261 /tests/compile | |
parent | f10a23e669cb6f17098b3d38c6bb5236ff91f9e9 (diff) | |
download | Nim-2dcbc6493a8bcebc7dc9364b4a834853e1263639.tar.gz |
fixes #686
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/tgeneric.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/compile/tgeneric.nim b/tests/compile/tgeneric.nim index 8bda15c42..9292b729f 100644 --- a/tests/compile/tgeneric.nim +++ b/tests/compile/tgeneric.nim @@ -8,4 +8,12 @@ proc foo(models: seq[TTable[string, float]]): seq[float] = for model in models.items: result.add model["foobar"] +# bug #686 +type TType[T; A] = array[A, T] + +proc foo[T](p: TType[T, range[0..1]]) = + echo "foo" +proc foo[T](p: TType[T, range[0..2]]) = + echo "bar" + |