You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
symboldefinition.gpp: symbol domain Animals = { TIGER, ELEPHANT }
main.gpp:
#include "symboldefinition.gpp"
action feed_animal(symbol animal) {
domain animal in Animal // <<<< problematic with outside defined domains
[...]
}
Will add a tested example and edit the issue next tuesday. Also the output might be interesting, because the error message did not immediately help us find the problem.
The text was updated successfully, but these errors were encountered:
vmatare
changed the title
Using included domain outside the defining file does not work
parser descends all includes before parsing any code
Dec 10, 2020
Consider two files:
symboldefinition.gpp:
symbol domain Animals = { TIGER, ELEPHANT }
main.gpp:
Will add a tested example and edit the issue next tuesday. Also the output might be interesting, because the error message did not immediately help us find the problem.
The text was updated successfully, but these errors were encountered: