diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-04 23:50:46 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-04 23:50:46 +0300 |
commit | fdae943090463526423f5e43e72cd2f0e8147a1b (patch) | |
tree | 5a7212555d8511df16fe6bbcc54b863ec9463b46 /src/type/mod.rs | |
parent | 36d2818d39e61b752923e253f8455f50510cb428 (diff) | |
download | myslip-fdae943090463526423f5e43e72cd2f0e8147a1b.tar.gz myslip-fdae943090463526423f5e43e72cd2f0e8147a1b.zip |
Added repl and some documentation. Improved error messages. Removed dead code.
* Removed same_variant in parse::parsetree
* Added SExp::multistep (for use of the repl)
Improved error messages:
* Added parenthesis around types
* Changed how errors propagate inferring generics:
added the error variant ArgumentsDontMatchGeneric,
implemented the displaying of it, added tests for
it.
* Had to change some tests to match for the new changes
Diffstat (limited to 'src/type/mod.rs')
-rw-r--r-- | src/type/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/type/mod.rs b/src/type/mod.rs index aeeff93..2454f31 100644 --- a/src/type/mod.rs +++ b/src/type/mod.rs @@ -45,6 +45,11 @@ pub enum TypeError { found: Type, }, + ArgumentsDontMatchGeneric { + argtype: Type, + generictype: Type, + }, + OtherError } |