solidity/test/libsolidity/syntaxTests/scoping/scoping.sol

12 lines
190 B
Solidity
Raw Normal View History

2018-03-15 23:47:12 +00:00
pragma experimental "v0.5.0";
contract test {
function f() public {
{
uint256 x;
}
x = 2;
}
}
// ----
// DeclarationError: Undeclared identifier.