Fix issue #72 - incorrect handling of GENERICS

Part 11 does not require a variable defined in a LOCAL to have a type label.
ap242 error: Return type or local variable requires type label in
             'validate_dependently_instantiable_entity_data_types'
This commit is contained in:
Mark Pictor
2011-11-05 11:18:52 -04:00
parent db00ec914f
commit 254b5a3dfb
+4 -2
View File
@@ -1405,8 +1405,10 @@ local_body : /* no local_variables */
| local_variable local_body
;
local_decl : TOK_LOCAL local_body TOK_END_LOCAL semicolon
{ }
local_decl : TOK_LOCAL
{ tag_count = 0; /* for generic_type */}
local_body TOK_END_LOCAL semicolon
{ tag_count = -1; }
/* | TOK_LOCAL error TOK_END_LOCAL semicolon
{ }*/
;