solidity/test/libsolidity/syntaxTests/scoping/scoping.sol
2018-04-10 14:08:22 +02:00

12 lines
201 B
Solidity

pragma experimental "v0.5.0";
contract test {
function f() public {
{
uint256 x;
}
x = 2;
}
}
// ----
// DeclarationError: (123-124): Undeclared identifier.