mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
326 B
Solidity
19 lines
326 B
Solidity
==== Source: A ====
|
|
error E(uint);
|
|
==== Source: B ====
|
|
import {E as Error} from "A";
|
|
|
|
contract C {
|
|
function f() public {
|
|
try this.f() {
|
|
|
|
} catch Error(uint x) {
|
|
|
|
}
|
|
}
|
|
}
|
|
// ====
|
|
// EVMVersion: >=byzantium
|
|
// ----
|
|
// TypeError 2943: (B:104-136): Expected `catch Error(string memory ...) { ... }`.
|