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:
@@ -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.
|
||||
Reference in New Issue
Block a user