summary refs log tree commit diff stats
path: root/tests/macros
diff options
context:
space:
mode:
authorFabian Keller <bluenote10@users.noreply.github.com>2017-03-02 15:30:19 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-03-02 15:30:19 +0100
commite2567e2e03c72929cbdfbf59933b4f35868b9626 (patch)
tree673b0a263417787b302ce62baf0c0627dff1fd38 /tests/macros
parent73387e89a09c376e5ca415bc4596281958ec3cae (diff)
downloadNim-e2567e2e03c72929cbdfbf59933b4f35868b9626.tar.gz
Fix sigsegv in getTypeImpl for unnamed tuple (#5440)
avoid sigsegv in getTypeImpl for unnamed tuple; fixes #4862
Diffstat (limited to 'tests/macros')
-rw-r--r--tests/macros/tgettypeinst.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/macros/tgettypeinst.nim b/tests/macros/tgettypeinst.nim
index 22e03a119..255eff949 100644
--- a/tests/macros/tgettypeinst.nim
+++ b/tests/macros/tgettypeinst.nim
@@ -120,3 +120,7 @@ test(Tree):
     right: ref Tree
 test(proc (a: int, b: Foo[2,float]))
 test(proc (a: int, b: Foo[2,float]): Bar[3,int])
+
+# bug #4862
+static:
+  discard typedesc[(int, int)].getTypeImpl