forked from GitHub/gf-core
fix the error message for overload resolution
This commit is contained in:
@@ -577,8 +577,7 @@ getOverload gr g mt ot = case appForm ot of
|
|||||||
checkWarn (text "ignoring lock fields in resolving" <+> ppTerm Unqualified 0 ot)
|
checkWarn (text "ignoring lock fields in resolving" <+> ppTerm Unqualified 0 ot)
|
||||||
return (mkApp fun tts, val)
|
return (mkApp fun tts, val)
|
||||||
([],[]) -> do
|
([],[]) -> do
|
||||||
---- let prtType _ = prt -- to debug grammars
|
let showTypes ty = hsep (map ppType ty)
|
||||||
let showTypes ty = vcat (map ppType ty)
|
|
||||||
checkError $ text "no overload instance of" <+> ppTerm Unqualified 0 f $$
|
checkError $ text "no overload instance of" <+> ppTerm Unqualified 0 f $$
|
||||||
text "for" $$
|
text "for" $$
|
||||||
nest 2 (showTypes tys) $$
|
nest 2 (showTypes tys) $$
|
||||||
|
|||||||
Reference in New Issue
Block a user