mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
266 B
Solidity
10 lines
266 B
Solidity
|
contract Test {
|
||
|
event MyCustomEvent(uint256);
|
||
|
|
||
|
function test() public returns(bytes4) {
|
||
|
return bytes4(MyCustomEvent);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError 9640: (111-132): Explicit type conversion not allowed from "event MyCustomEvent(uint256)" to "bytes4".
|