mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
disabled ad hoc overloading, as it still causes mysterious errors. It is just a few lines in Rename.hs
This commit is contained in:
@@ -101,15 +101,16 @@ renameIdentTerm' env@(act,imps) t0 =
|
|||||||
text "given" <+> fsep (punctuate comma (map (ppIdent . fst) qualifs)))
|
text "given" <+> fsep (punctuate comma (map (ppIdent . fst) qualifs)))
|
||||||
fs -> case nub [f c | f <- fs] of
|
fs -> case nub [f c | f <- fs] of
|
||||||
[tr] -> return tr
|
[tr] -> return tr
|
||||||
|
{-
|
||||||
ts -> return $ AdHocOverload ts
|
ts -> return $ AdHocOverload ts
|
||||||
-- name conflicts resolved as overloading in TypeCheck.RConcrete AR 31/1/2014
|
-- name conflicts resolved as overloading in TypeCheck.RConcrete AR 31/1/2014
|
||||||
-- the old definition is below and still presupposed in TypeCheck.Concrete
|
-- the old definition is below and still presupposed in TypeCheck.Concrete
|
||||||
{-
|
-}
|
||||||
ts@(t:_) -> do checkWarn (text "atomic term" <+> ppTerm Qualified 0 t0 $$
|
ts@(t:_) -> do checkWarn (text "atomic term" <+> ppTerm Qualified 0 t0 $$
|
||||||
text "conflict" <+> hsep (punctuate comma (map (ppTerm Qualified 0) ts)) $$
|
text "conflict" <+> hsep (punctuate comma (map (ppTerm Qualified 0) ts)) $$
|
||||||
text "given" <+> fsep (punctuate comma (map (ppIdent . fst) qualifs)))
|
text "given" <+> fsep (punctuate comma (map (ppIdent . fst) qualifs)))
|
||||||
return t
|
return t
|
||||||
-}
|
|
||||||
-- a warning will be generated in CheckGrammar, and the head returned
|
-- a warning will be generated in CheckGrammar, and the head returned
|
||||||
-- in next V:
|
-- in next V:
|
||||||
-- Bad $ "conflicting imports:" +++ unwords (map prt ts)
|
-- Bad $ "conflicting imports:" +++ unwords (map prt ts)
|
||||||
|
|||||||
Reference in New Issue
Block a user