aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-04 14:12:07 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-04 14:12:07 +0100
commit6a1b784cf17d20c9b0c1e712c4cfc7faae6557d4 (patch)
tree602c52cb67aead57490aa11cfa25e90ce1c280e7 /src
parent8e678a017e970e3cca2bbef606b9f8eaa3732353 (diff)
downloadmicro-lang-hs-6a1b784cf17d20c9b0c1e712c4cfc7faae6557d4.tar.gz
micro-lang-hs-6a1b784cf17d20c9b0c1e712c4cfc7faae6557d4.zip
Ccmment clarifying the case
Diffstat (limited to 'src')
-rw-r--r--src/Compiler.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compiler.hs b/src/Compiler.hs
index 3b41e79..8075515 100644
--- a/src/Compiler.hs
+++ b/src/Compiler.hs
@@ -49,6 +49,7 @@ typecheckCall args params
targs <- fmap rights $ traverse compile args
case sequence targs of
Just t
+ -- after resolition, we could have less "rights"
| length t /= length params -> return $ Nothing
| all (\(a, b) -> a == b) $ zip t params -> -- compare types
return $ Nothing -- all good!