This commit is contained in:
Zahary Karadjov 2018-06-10 16:44:49 +03:00 • committed by zah
commit 5f2cdcd4fa
4 changed files with 34 additions and 13 deletions

View file

@ -1,12 +1,14 @@
discard """
output: '''42'''
output: "42\n42"
"""
type
Foo[N: static[int]] = object
proc foo[N](x: Foo[N]) =
let n = N
echo N
echo n
var f1: Foo[42]
f1.foo