repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b4fd06
)
infer voor statements
author
pimjager
<pim@pimjager.nl>
Mon, 2 May 2016 14:32:18 +0000
(16:32 +0200)
committer
pimjager
<pim@pimjager.nl>
Mon, 2 May 2016 14:32:18 +0000
(16:32 +0200)
sem.icl
patch
|
blob
|
history
diff --git
a/sem.icl
b/sem.icl
index
8ed05eb
..
272ef5a
100644
(file)
--- a/
sem.icl
+++ b/
sem.icl
@@
-296,6
+296,11
@@
instance infer Stmt where
changeGamma (extend k (Forall [] et)) >>| //todo: fieldselectors
pure (s1, VoidType)
+ FunStmt f es = undef //what is this?
+
+ ReturnStmt Nothing = pure (zero, VoidType)
+ ReturnStmt (Just e) = infer e
+
instance infer [a] | infer a where
infer _ = undef