mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow constant byte arrays.
This commit is contained in:
parent
3a9a9db6d6
commit
ff275e369c
@ -18,6 +18,7 @@ Features:
|
||||
Bugfixes:
|
||||
* ABI JSON: Include all overloaded events.
|
||||
* Parser: Crash fix related to parseTypeName.
|
||||
* Type Checker: Allow constant byte arrays.
|
||||
|
||||
### 0.4.16 (2017-08-24)
|
||||
|
||||
|
@ -623,7 +623,7 @@ bool TypeChecker::visit(VariableDeclaration const& _variable)
|
||||
{
|
||||
bool allowed = false;
|
||||
if (auto arrayType = dynamic_cast<ArrayType const*>(_variable.type().get()))
|
||||
allowed = arrayType->isString();
|
||||
allowed = arrayType->isByteArray();
|
||||
if (!allowed)
|
||||
m_errorReporter.typeError(_variable.location(), "Constants of non-value type not yet implemented.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user