This commit is contained in:
Timothee Cour
2020-06-24 23:00:19 -07:00
committed by GitHub
parent 0327159344
commit 32f335f594
2 changed files with 9 additions and 1 deletions

View File

@@ -216,3 +216,10 @@ block: # #12713
proc test(c: static string) = discard #Remove this and it compiles
proc test(c: Cell) = discard
test Cell()
block: # issue #14802
template fn(s: typed): untyped =
proc bar() = discard
12
const myConst = static(fn(1))
doAssert myConst == 12