mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add missing test case for try/Catch
This commit is contained in:
parent
859220c9bd
commit
346344dc7b
@ -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",
|
||||
|
11
test/libsolidity/syntaxTests/tryCatch/returns_mismatch.sol
Normal file
11
test/libsolidity/syntaxTests/tryCatch/returns_mismatch.sol
Normal 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.
|
Loading…
Reference in New Issue
Block a user