shithub: mc

Download patch

ref: 72819dcccff346a919f36f8cb8b1ab2014ab4977
parent: d4030509dc5ebcfb8e3922ab01bda9ada8cd094d
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 30 12:29:16 EST 2021

Allow omitting the parameter name when it's unneeded.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -439,6 +439,7 @@
 
 typedeclcore
 	: name Tcolon type {$$ = mkdecl($1->loc, $1, $3);}
+	| Tcolon type {$$ = mkpseudodecl($1->loc, $2);}
 	;
 
 name	: Tident {$$ = mkname($1->loc, $1->id);}