Reject ptr/ref void types (#8127)

Do this during the semantic pass to avoid tripping the following passes.

Fixes #6454
This commit is contained in:
LemonBoy 2018-06-27 21:41:40 +02:00 • committed by Andreas Rumpf
commit 7f148838a4
2 changed files with 10 additions and 0 deletions

7
tests/types/t6456.nim Normal file
View file

@ -0,0 +1,7 @@
discard """
line: 6
errormsg: "type \'ptr void\' is not allowed"
"""
proc foo(x: ptr void) =
discard