Skip to content

Commit d112f8e

Browse files
committed
fixup! Type inference draft.
1 parent 5983183 commit d112f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libsolidity/experimental/analysis/TypeInference.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ bool TypeInference::visit(TypeClassInstantiation const& _typeClassInstantiation)
707707
{
708708
if (!functionTypes.count(name))
709709
{
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);
711711
continue;
712712
}
713713
Type instanceFunctionType = functionTypes.at(name);
@@ -718,7 +718,7 @@ bool TypeInference::visit(TypeClassInstantiation const& _typeClassInstantiation)
718718
7428_error,
719719
_typeClassInstantiation.location(),
720720
fmt::format(
721-
"Type mismatch for function {} {} != {}",
721+
"Instantiation function '{}' does not match the declaration in the type class ({} != {}).",
722722
name,
723723
TypeEnvironmentHelpers{newEnv}.typeToString(instanceFunctionType),
724724
TypeEnvironmentHelpers{newEnv}.typeToString(classFunctionType)

0 commit comments

Comments
 (0)