Commit fc9205f
committed
fix: process imports before extern declarations
Reorder type processing to:
1. Process imports first to register opaque types from stdlib
2. Then process extern declarations from merged program
This ensures TypeRegistry has all type information before lowering.
Note: Types are still resolved to TypeId(0) placeholders during
parsing of main program. Full fix requires either:
- Two-pass parsing (parse imports, then reparse main)
- Lazy type resolution in lowering phase
Current state: imports work and merge declarations, but type
resolution from imports needs additional work in lowering phase.1 parent 640e484 commit fc9205f
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
819 | 817 | | |
820 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
821 | 823 | | |
822 | 824 | | |
823 | 825 | | |
| |||
0 commit comments