mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
21 lines
487 B
Solidity
21 lines
487 B
Solidity
library L {
|
|
error E();
|
|
}
|
|
library S {
|
|
error E(uint);
|
|
}
|
|
library T {
|
|
error E();
|
|
}
|
|
contract C {
|
|
function f() public pure returns (bytes4, bytes4) {
|
|
assert(L.E.selector == T.E.selector);
|
|
assert(L.E.selector != S.E.selector);
|
|
return (L.E.selector, S.E.selector);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 0x92bbf6e800000000000000000000000000000000000000000000000000000000, 0x2ff06700000000000000000000000000000000000000000000000000000000
|