mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
type checking of oper types with let expressions
This commit is contained in:
@@ -45,6 +45,8 @@ computeLType gr g0 t = comp (reverse [(b,x, Vr x) | (b,x,_) <- g0] ++ g0) t
|
|||||||
b' <- comp ((bt,x,Vr x):g) b
|
b' <- comp ((bt,x,Vr x):g) b
|
||||||
return $ Abs bt x b'
|
return $ Abs bt x b'
|
||||||
|
|
||||||
|
Let (x,(_,a)) b -> comp ((Explicit,x,a):g) b
|
||||||
|
|
||||||
ExtR r s -> do
|
ExtR r s -> do
|
||||||
r' <- comp g r
|
r' <- comp g r
|
||||||
s' <- comp g s
|
s' <- comp g s
|
||||||
|
|||||||
Reference in New Issue
Block a user