mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:31:15 +01:00
Model var as a pattern operator (#4720)
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
Richard Smith
parent
6572da7314
commit
13434f0e8a
@@ -42,6 +42,7 @@ auto HandleParseNode(Context& context, Parse::ImplIntroducerId node_id)
|
||||
// TODO: Instead use a separate parse node kinds for `impl` and `impl forall`,
|
||||
// and only push a pattern block in `forall` case.
|
||||
context.pattern_block_stack().Push();
|
||||
context.full_pattern_stack().PushFullPattern();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user