1 2 3 4 5 6 7 8 9 10 11 12 13
contract Foo { function foo() public { // new block is introduced with { and ends with } { uint256 a; a = 102; } // ERROR: a is out of scope // uint256 b = a + 5; } }