The first example sounds like a bug that could sneak in anywhere, but the second one makes me question how they laid out the compiler architecture.
Did they write a special expression parser just for declarations? I mean, this shouldn't be possible if there was just one expression parser?