mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests for strict address literals
This commit is contained in:
committed by
Alex Beregszaszi
parent
48b003d4d4
commit
98c9ca2575
@@ -1,8 +1,8 @@
|
||||
contract test {
|
||||
function fun(uint256 a) returns (address b) {
|
||||
function fun(uint256 a) returns (uint8 b) {
|
||||
if (a < 0) b = 0x67; else if (a == 0) b = 0x12; else b = 0x78;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (20-142): No visibility specified. Defaulting to "public".
|
||||
// Warning: (20-142): Function state mutability can be restricted to pure
|
||||
// Warning: (20-140): No visibility specified. Defaulting to "public".
|
||||
// Warning: (20-140): Function state mutability can be restricted to pure
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
contract c {
|
||||
modifier mod { if (msg.sender == 0) _; }
|
||||
modifier mod { if (msg.sender == 0x0000000000000000000000000000000000000000) _; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user