solidity/test/libsolidity/syntaxTests/errors/using_2.sol

13 lines
233 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
error E(uint);
library L {
function f(uint) internal {}
}
contract C {
using L for E;
function f() public pure {
E.f();
}
}
// ----
// TypeError 5172: (91-92): Name has to refer to a struct, enum or contract.