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

11 lines
228 B
Solidity
Raw Normal View History

2020-03-08 16:27:43 +00:00
contract Test {
// This checks a scoping error,
// the variable "a" was not visible
// at the assignment.
function test(address _ext) external {
try Test(_ext).test(_ext) {} catch {}
uint a = 1;
a = 3;
}
}