fix(parser): forbid invalid modifiers on module and global
#15723
+22
−0
module and global
#15723