Add missing test case for try/Catch

This commit is contained in:
Alex Beregszaszi 2021-02-16 12:22:22 +00:00
parent 859220c9bd
commit 346344dc7b
2 changed files with 12 additions and 1 deletions

View File

@ -221,7 +221,7 @@ def examine_id_coverage(top_dir, source_id_to_file_names, new_ids_only=False):
old_source_only_ids = {
"1584", "1823",
"1988", "2066", "2800", "3356",
"1988", "2066", "3356",
"3893", "3996", "4010", "4802",
"5073", "5272", "5622", "7128",
"7589", "7593", "8065", "8084", "8140",

View File

@ -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.