mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add mutability declaration to example, for #3379
This commit is contained in:
parent
31aaf4336a
commit
053e634276
@ -187,12 +187,12 @@ Given the contract:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pragma solidity ^0.4.0;
|
pragma solidity ^0.4.16;
|
||||||
|
|
||||||
contract Foo {
|
contract Foo {
|
||||||
function bar(bytes3[2] xy) public {}
|
function bar(bytes3[2]) public pure {}
|
||||||
function baz(uint32 x, bool y) public returns (bool r) { r = x > 32 || y; }
|
function baz(uint32 x, bool y) public pure returns (bool r) { r = x > 32 || y; }
|
||||||
function sam(bytes name, bool z, uint[] data) public {}
|
function sam(bytes name, bool z, uint[] data) public pure {name=name; z=z; data=data;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user