mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Type checking for creating new arrays.
This commit is contained in:
1 parent
30b325fdc1
commit
bf55aa6ae2
5 files changed
+67
-7
No files matched your search
@@ -37,6 +37,11 @@ bool ReferencesResolver::visit(Return const& _return)
|
||||
return true;
|
||||
}
|
||||
|
||||
void ReferencesResolver::endVisit(NewExpression const& _new)
|
||||
{
|
||||
typeFor(_new.typeName());
|
||||
}
|
||||
|
||||
bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
|
||||
{
|
||||
Declaration const* declaration = m_resolver.pathFromCurrentScope(_typeName.namePath());
|
||||
|
||||
Reference in new issue
Block a user