mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:31:03 +01:00
Integrates tuple to semantic analysis (#2992)
Handles tuples (including nested tuples) in the semantic phase of the tool chain. Does not handle tuple element access yet. --------- Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com> Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Farzana Ahmed Siddique
Jon Ross-Perkins
parent
1d2853ef08
commit
0594a1aac7
@@ -26,7 +26,6 @@ auto SemanticsHandleVariableDeclaration(SemanticsContext& context,
|
||||
auto binding = context.semantics_ir().GetNode(binding_id);
|
||||
auto [name_id, storage_id] = binding.GetAsBindName();
|
||||
context.AddNameToLookup(binding.parse_node(), name_id, storage_id);
|
||||
|
||||
// If there was an initializer, assign it to storage.
|
||||
if (has_init) {
|
||||
auto cast_value_id = context.ImplicitAsRequired(
|
||||
|
||||
Reference in New Issue
Block a user