mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 14:29:31 -06:00
Fixed type argument to recursive call in generated composOp.
This commit is contained in:
@@ -138,7 +138,7 @@ deriveComposOp t k cs =
|
||||
-- has a dependent type
|
||||
-- FIXME: make a special case for lists?
|
||||
let rec v at = case at of
|
||||
EApp (EVar t') _ | t' == t -> apply (e f) [at, e v]
|
||||
EApp (EVar t') c | t' == t -> apply (e f) [c, e v]
|
||||
_ -> e v
|
||||
calls = zipWith rec vars (argumentTypes ct)
|
||||
return $ Case (PCons ci (map PVar vars)) (apply (e ci) calls)
|
||||
|
||||
Reference in New Issue
Block a user