mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 17:58:12 +00:00
Entities, such as `Function`s may be created during phase 2 and need to read the `Class`'s `scope_id` at that point, so it must be made available earlier (in phase 2, rather than 3) when importing. (thanks @zygoloid for explaining this all to me) I'll look into other instances of this 3 phase lookup to see if they have similar bugs/if I can create test cases to tickle them as follow-ups. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>