[Chapel Merge] dyno: Adjust assertion for AggregateDecl (#19886)

Branch: refs/heads/main
Revision: 7a36fe9
Author: dlongnecke-cray
Link: dyno: Adjust assertion for AggregateDecl by dlongnecke-cray · Pull Request #19886 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19886 from dlongnecke-cray/dyno-strange-enum-bug

dyno: Adjust assertion for AggregateDecl (#19886)

Adjust an assertion which checks body elements in AggregateDecl
so that it accepts TypeDecl and EmptyStmt, which are both
valid children (e.g., enum and ; respectively).

Reviewed by @benharsh. Thanks!

Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com

Modified Files:
M compiler/dyno/lib/uast/AggregateDecl.cpp

Compare: https://github.com/chapel-lang/chapel/compare/90966bb3479d...7a36fe915158