File tree 1 file changed +2
-2
lines changed
libsolidity/experimental/analysis
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ bool TypeInference::visit(TypeClassInstantiation const& _typeClassInstantiation)
707
707
{
708
708
if (!functionTypes.count (name))
709
709
{
710
- m_errorReporter.typeError (6948_error, _typeClassInstantiation.location (), " Missing function: " + name);
710
+ m_errorReporter.typeError (6948_error, _typeClassInstantiation.location (), " Instantiation function not declared in the type class : " + name);
711
711
continue ;
712
712
}
713
713
Type instanceFunctionType = functionTypes.at (name);
@@ -718,7 +718,7 @@ bool TypeInference::visit(TypeClassInstantiation const& _typeClassInstantiation)
718
718
7428_error,
719
719
_typeClassInstantiation.location (),
720
720
fmt::format (
721
- " Type mismatch for function {} {} != {}" ,
721
+ " Instantiation function '{}' does not match the declaration in the type class ( {} != {}). " ,
722
722
name,
723
723
TypeEnvironmentHelpers{newEnv}.typeToString (instanceFunctionType),
724
724
TypeEnvironmentHelpers{newEnv}.typeToString (classFunctionType)
You can’t perform that action at this time.
0 commit comments