Use FullPatternStack instead of node stack for binding context (#4829)

This commit is contained in:
Geoff Romer
2025-01-23 17:25:31 +00:00
committed by GitHub
parent 9c0faf007e
commit 96256652c5
14 changed files with 117 additions and 93 deletions
@@ -10,7 +10,7 @@
class Incomplete;
// CHECK:STDERR: fail_incomplete_element.carbon:[[@LINE+7]]:8: error: variable has incomplete type `[Incomplete; 1]` [IncompleteTypeInVarDecl]
// CHECK:STDERR: fail_incomplete_element.carbon:[[@LINE+7]]:8: error: binding pattern has incomplete type `[Incomplete; 1]` in name binding declaration [IncompleteTypeInBindingDecl]
// CHECK:STDERR: var a: [Incomplete; 1];
// CHECK:STDERR: ^~~~~~~~~~~~~~~
// CHECK:STDERR: fail_incomplete_element.carbon:[[@LINE-5]]:1: note: class was forward declared here [ClassForwardDeclaredHere]