Aria

A low-level systems programming language
git clone git://git.m21c.me/Aria.git
Log | Files | Refs | LICENSE

commit 681cb49c7bfd03cede4a21b40be3e584e9412166
parent df475c4c0239af35fe211baaa64a6a30165fca45
Author: m21c  <ho*******@gmail.com>
Date:   Sun,  3 Oct 2021 17:40:58 +0200

fixed type or module of declaration

Diffstat:
Mcompiler.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/compiler.c b/compiler.c @@ -2088,6 +2088,12 @@ redodeclaration: goto readvarmodule; } + if ((getkind(source) == ODISP || getkind(source) == ':') && + getkind(source) != '(' && getkind(source) != OASS) + { + error(&loc, "expected type or module"); + } + decl = makedecl(source, key, DVAR); decl->loc = loc; decl->type = ty;