solidity/test/libsolidity/syntaxTests/using/module_1.sol

13 lines
261 B
Solidity
Raw Normal View History

2021-10-11 08:16:52 +00:00
==== Source: A ====
function id(uint x) pure returns (uint) {
return x;
}
==== Source: B ====
import "A" as M;
contract C {
using M for uint;
}
// ----
// TypeError 4357: (B:40-41): Library name expected. If you want to attach a function, use '{...}'.