Be more robust to semantic errors on the wrong side when compiling with duetto