mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
319 B
22 lines
319 B
4 years ago
|
contract C {
|
||
|
event E(uint);
|
||
|
|
||
|
function emitNoKeyword() public {
|
||
|
E(1);
|
||
|
C.E(1);
|
||
|
}
|
||
|
|
||
|
function emitWithKeyword() public {
|
||
|
emit E(1);
|
||
|
emit C.E(1);
|
||
|
}
|
||
|
|
||
|
function cursed() public {
|
||
|
var x = E;
|
||
|
x(1);
|
||
|
x(2);
|
||
|
|
||
|
emit x(1);
|
||
|
emit x(2);
|
||
|
}
|
||
|
}
|