From 32f335f594d7007fabe4232a63f51137d7fb6cc1 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 24 Jun 2020 23:00:19 -0700 Subject: fix #14802 (#14803) --- tests/statictypes/tstatictypes.nim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/statictypes/tstatictypes.nim b/tests/statictypes/tstatictypes.nim index 1aab6e124..2a8d09dbf 100644 --- a/tests/statictypes/tstatictypes.nim +++ b/tests/statictypes/tstatictypes.nim @@ -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 -- cgit 1.4.1-2-gfad0