This commit is contained in:
Zahary Karadjov 2017-06-10 18:33:24 +03:00 • committed by Andreas Rumpf
commit 9c6fe59b55
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,26 @@
discard """
output: '''
dynamic: let
dynamic: var
static: const
static: literal
static: constant folding
'''
"""
proc foo(s: string) =
echo "dynamic: ", s
proc foo(s: static[string]) =
echo "static: ", s
let l = "let"
let v = "var"
const c = "const"
foo(l)
foo(v)
foo(c)
foo("literal")
foo("constant" & " " & "folding")