summaryrefslogtreecommitdiff
path: root/src/GF/Compile
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2006-01-20 16:56:38 +0000
committeraarne <aarne@cs.chalmers.se>2006-01-20 16:56:38 +0000
commitc9ed0c42187502cfa066ae48fb55c9e6a9476428 (patch)
tree263259abf1edbddbfaf0741fa632b015b5df4027 /src/GF/Compile
parent60d7d169061d98ec3747c111b9322297c63b2646 (diff)
more french
Diffstat (limited to 'src/GF/Compile')
-rw-r--r--src/GF/Compile/CheckGrammar.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GF/Compile/CheckGrammar.hs b/src/GF/Compile/CheckGrammar.hs
index 1480e4ddb..3ca7e68df 100644
--- a/src/GF/Compile/CheckGrammar.hs
+++ b/src/GF/Compile/CheckGrammar.hs
@@ -717,14 +717,14 @@ pattContext env typ p = case p of
g1 <- pattContext env typ p
g2 <- pattContext env typ q
return $ g1 ++ g2
- PRep p' -> noBind p'
- PNeg p' -> noBind p'
+ PRep p' -> noBind typeStr p'
+ PNeg p' -> noBind typ p'
_ -> return [] ---- check types!
where
cnc = env
- noBind p' = do
- co <- pattContext env typeStr p'
+ noBind typ p' = do
+ co <- pattContext env typ p'
if not (null co)
then checkWarn ("no variable bound inside pattern" +++ prt p)
>> return []