Commit 68bc58d6 authored by POTTIER Francois's avatar POTTIER Francois

Added a test where two productions in a group do not define the same identifiers.

parent 0da7c513
File "production-group.mly", line 4, characters 20-21:
Error: two productions that share a semantic action must define exactly
the same identifiers. Here, "y" is defined
in one production, but not in all of them.
%token A B C
%start main
%%
main: x = A | x = B y = C { x }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment