Use is_usable logic for recent continuation and choice recursive name lookup fixes (#1312)

This commit is contained in:
pk19604014
2022-06-07 13:10:55 -07:00
committed by GitHub
parent a97276bcf7
commit 058b5e77c0
3 changed files with 12 additions and 10 deletions
@@ -11,7 +11,7 @@
package ExplorerTest api;
choice Ch {
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/basic_syntax/fail_alternative_uses_choice.carbon:[[@LINE+1]]: could not resolve 'Ch'
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/basic_syntax/fail_alternative_uses_choice.carbon:[[@LINE+1]]: 'Ch' is not usable until after it has been completely declared
Opt(Ch)
}