diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-06-24 23:00:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 08:00:19 +0200 |
commit | 32f335f594d7007fabe4232a63f51137d7fb6cc1 (patch) | |
tree | 37b9b6316c6712d3c183fc8afe0ec4f905b05bca /tests | |
parent | 03271593446f72cb99ebe8b68121999ba7ea8021 (diff) | |
download | Nim-32f335f594d7007fabe4232a63f51137d7fb6cc1.tar.gz |
fix #14802 (#14803)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/statictypes/tstatictypes.nim | 7 |
1 files changed, 7 insertions, 0 deletions
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 |