mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 12:05:49 +01:00
Instead, produce a CARBON_FATAL error. Returning an Error constant from the importer seems reasonable but turns out to not work well in practice, because it violates the invariant that a constant value should not have an error as an operand. Also, don't produce an error constant for a valid ImportRefLoaded that whose value is not constant; preserve the non-constant value instead.