forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent_library_function.sol
35 lines (28 loc) · 1000 Bytes
/
event_library_function.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
library L {
function f() public {
int x = 1;
}
}
contract C {
event Test(function() external indexed);
function g() public {
Test(L.f);
}
}
contract D {
event Test(function() external);
function f() public {
Test(L.f);
}
}
contract E {
event Test(function() external indexed);
using L for D;
function k() public {
Test(D.f);
}
}
// ----
// TypeError 9553: (140-143): Invalid type for argument in function call. Invalid implicit conversion from function () to function () external requested. Special functions cannot be converted to function types.
// TypeError 9553: (230-233): Invalid type for argument in function call. Invalid implicit conversion from function () to function () external requested. Special functions cannot be converted to function types.
// TypeError 9553: (345-348): Invalid type for argument in function call. Invalid implicit conversion from function D.f() to function () external requested. Special functions cannot be converted to function types.