diff options
author | Fabian Keller <bluenote10@users.noreply.github.com> | 2017-03-02 15:30:19 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-02 15:30:19 +0100 |
commit | e2567e2e03c72929cbdfbf59933b4f35868b9626 (patch) | |
tree | 673b0a263417787b302ce62baf0c0627dff1fd38 /tests/macros | |
parent | 73387e89a09c376e5ca415bc4596281958ec3cae (diff) | |
download | Nim-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.nim | 4 |
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 |