mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use declared instead of defined
This commit is contained in:
@@ -469,7 +469,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
bool TypeChecker::visit(VariableDeclaration const& _variable)
|
||||
{
|
||||
if (m_scope->contractKind() == ContractDefinition::ContractKind::Interface)
|
||||
typeError(_variable.location(), "Variables cannot be defined in interfaces.");
|
||||
typeError(_variable.location(), "Variables cannot be declared in interfaces.");
|
||||
|
||||
// Variables can be declared without type (with "var"), in which case the first assignment
|
||||
// sets the type.
|
||||
|
||||
Reference in New Issue
Block a user