mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 18:11:44 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user