Add missing test case for try/Catch

This commit is contained in:
Alex Beregszaszi
2021-02-16 12:33:55 +00:00
parent 859220c9bd
commit 346344dc7b
2 changed files with 12 additions and 1 deletions
@@ -0,0 +1,11 @@
contract C {
function f() public returns (uint, uint) {
try this.f() returns (uint a) {
a = 1;
} catch {
}
}
}
// ----
// TypeError 2800: (81-128): Function returns 2 values, but returns clause has 1 variables.