Merge pull request #10969 from ethereum/missing-test

Add missing test case for try/catch
This commit is contained in:
chriseth authored and GitHub committed 2021-02-16 13:45:14 +01:00
commit d82b5d495b
2 files changed
+12 -1

No files matched your search

+1 -1
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",
@@ -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.