Fix scoping following try/catch.

This commit is contained in:
chriseth
2020-03-09 13:14:13 +01:00
parent b1e43833c7
commit 37e01a19c0
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,10 @@
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;
}
}