shithub: mc

Download patch

ref: 4792730ddf78a778496334c97709c1e0da06a61d
parent: 1f99d2dc0f2e8afe604bfe777063b4f2e277e185
author: Ori Bernstein <ori@markovcorp.com>
date: Sun May 14 09:21:16 EDT 2017

Tag declaration initializers in generics.

--- a/parse/export.c
+++ b/parse/export.c
@@ -173,7 +173,7 @@
 		if (hidelocal && n->decl.ispkglocal)
 			n->decl.vis = Vishidden;
 		n->decl.isexportinit = isexportinit(n);
-		if (n->decl.isexportinit)
+		if (n->decl.isexportinit || ingeneric)
 			tagnode(st, n->decl.init, n->decl.isgeneric, hidelocal);
 		break;
 	case Nfunc: