[Yhc] Inconsistent compilation when type context is involved