mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 10:38:10 +00:00
When deduce determines the type of its parameters, it converts each argument to the correct type, generating an error if the argument can't convert. It is at this point that enclosing specifics are applied to arguments as well, as the enclosing specifics are stored in `substitutions_`. However we were only doing this step for concrete argument values. If the argument is a symbolic value, like a facet value that has an enclosing specific, we failed to apply that enclosing specific. Then the unconverted argument (without the enclosing specific applied) would end up failing to convert to the parameter type even though deduce found that it should.