mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C99 scoping rules by default
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
contract test {
|
||||
function fun(uint256 a) {
|
||||
while (true) { uint256 x = 1; break; continue; } x = 9;
|
||||
function fun() public pure {
|
||||
uint256 x;
|
||||
while (true) { x = 1; break; continue; } x = 9;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (20-115): No visibility specified. Defaulting to "public".
|
||||
// Warning: (33-42): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
||||
// Warning: (20-115): Function state mutability can be restricted to pure
|
||||
|
||||
Reference in New Issue
Block a user