-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix most type errors from the new print functions
- Loading branch information
Showing
7 changed files
with
106 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
- Kind checking! | ||
- `llvm::Generator::convert_type` needs be fixed for generic types and possibly sum types as well | ||
- Locations should be stored in a `types::traits::Impl` for better error messages for trait errors | ||
- Allocate all ast nodes in a pool, and change them to store node IDs instead of hard references | ||
- Variadic functions. Goal: support `extern printf: (ref char) ... -> int` | ||
- cleanup `resolve_definitions` and friends in name resolution. Their use of DefinitionNodes is | ||
one of the less satisfying uses of `unsafe` in this codebase. This would be trivial if we | ||
allocated nodes in a pool since we could store the node ID instead and wouldn't have to worry | ||
about storing the mutable reference to a node. | ||
- cleanup `ast::If` codegen | ||
- cleanup `required_definitions` in name resolution (is it still needed?) | ||
- Move towards using the `salsa` library and possibly removing ModuleCache | ||
|
||
- Audit uses of `typechecker::unify` to maybe specialize them to improve error messages for type errors | ||
- Improve parser error messages | ||
- cranelift or c backend | ||
- Improve type checker error messages | ||
- 'type mismatch' should be more specific | ||
- wrong number of parameters used points to definition rather than callsite or both | ||
- Declare-before use for impls | ||
- Support variadic functions in cranelift backend. Goal: support `extern printf: (ref char) ... -> int` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters