Skip to content

Commit

Permalink
Parse constraints for const type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Aug 4, 2023
1 parent 7dc3c45 commit a2d4d3f
Show file tree
Hide file tree
Showing 2 changed files with 5,044 additions and 5,020 deletions.
3 changes: 2 additions & 1 deletion src/coreclr/ilasm/asmparse.y
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ conTyparAttribs : /* EMPTY */ { $$ = 0; }
| conTyparAttrib conTyparAttribs { $$ = $1 | $2; }
;

typars : CONST_ conTyparAttribs type dottedName typarsRest {$$ = new TyParList($2, $3, NULL, $4, $5); }
typars : CONST_ conTyparAttribs type tyBound dottedName typarsRest {$$ = new TyParList($2, $3, $4, $5, $6); }
| CONST_ conTyparAttribs type dottedName typarsRest {$$ = new TyParList($2, $3, NULL, $4, $5); }
| typarAttribs tyBound dottedName typarsRest {$$ = new TyParList($1, $2, $3, $4);}
| typarAttribs dottedName typarsRest {$$ = new TyParList($1, NULL, $2, $3);}
;
Expand Down
Loading

0 comments on commit a2d4d3f

Please sign in to comment.