mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 23:30:28 +00:00
When converting an expression to type type, retain the resulting instruction as well as the TypeId. (#4355)
The `TypeId` is lossy, as it represents only the canonical type, and not the specific computation that produced it.
This commit is contained in:
1 parent
9d5ec52232
commit
4ca711c175
15 files changed
+48
-33
No files matched your search
@@ -14,7 +14,7 @@ namespace Carbon::Check {
|
||||
static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
|
||||
bool is_generic) -> bool {
|
||||
auto [type_node, parsed_type_id] = context.node_stack().PopExprWithNodeId();
|
||||
auto cast_type_id = ExprAsType(context, type_node, parsed_type_id);
|
||||
auto cast_type_id = ExprAsType(context, type_node, parsed_type_id).type_id;
|
||||
|
||||
// TODO: Handle `_` bindings.
|
||||
|
||||
|
||||
Reference in new issue
Block a user