mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 08:32:50 -06:00
fixed the mysterious "file..gfc" error
This commit is contained in:
@@ -103,8 +103,9 @@ renameIdentTerm env@(act,imps) t =
|
||||
[] -> alt c ("constant not found:" +++ prt c)
|
||||
fs -> case nub [f c | f <- fs] of
|
||||
[tr] -> return tr
|
||||
ts@(tr:_) ->
|
||||
Bad $ "conflicting imports:" +++ unwords (map prt ts)
|
||||
ts -> return $ Strs $ (cnIC "#conflict") : reverse ts
|
||||
-- a warning will be generated in CheckGrammar, and the head returned
|
||||
-- in next V: Bad $ "conflicting imports:" +++ unwords (map prt ts)
|
||||
|
||||
|
||||
--- | would it make sense to optimize this by inlining?
|
||||
|
||||
Reference in New Issue
Block a user