mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-08-19 10:46:22 -06:00
of by one error when counting terms of type Ints n
This commit is contained in:
@@ -207,7 +207,7 @@ allParamValues gr ptyp =
|
||||
countParamValues :: ErrorMonad m => Grammar -> Type -> m Int
|
||||
countParamValues gr ptyp =
|
||||
case ptyp of
|
||||
_ | Just n <- isTypeInts ptyp -> return (fromIntegral n)
|
||||
_ | Just n <- isTypeInts ptyp -> return (fromIntegral n+1)
|
||||
QC c -> do (_,info) <- lookupOrigInfo gr c
|
||||
case info of
|
||||
ResParam _ (Just (_,cnt)) -> return cnt
|
||||
|
||||
Reference in New Issue
Block a user