From fdae943090463526423f5e43e72cd2f0e8147a1b Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Mon, 4 Aug 2025 23:50:46 +0300 Subject: 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 --- src/type/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/type/mod.rs') 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 } -- cgit v1.2.3