mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[TMP] Remove polymorphicInstance() from class type member types
This commit is contained in:
parent
bdd2f02c83
commit
201259d50b
@ -216,8 +216,7 @@ bool TypeInference::visit(TypeClassDefinition const& _typeClassDefinition)
|
||||
subNode->accept(*this);
|
||||
auto const* functionDefinition = dynamic_cast<FunctionDefinition const*>(subNode.get());
|
||||
solAssert(functionDefinition);
|
||||
// TODO: need polymorphicInstance?
|
||||
auto functionType = polymorphicInstance(typeAnnotation(*functionDefinition));
|
||||
auto functionType = typeAnnotation(*functionDefinition);
|
||||
if (!functionTypes.emplace(functionDefinition->name(), functionType).second)
|
||||
m_errorReporter.fatalTypeError(3195_error, functionDefinition->location(), "Function in type class declared multiple times.");
|
||||
auto typeVars = TypeEnvironmentHelpers{*m_env}.typeVars(functionType);
|
||||
|
Loading…
Reference in New Issue
Block a user