mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
364 B
Solidity
11 lines
364 B
Solidity
|
library D { function double(bytes32 self) public returns (uint) { return 2; } }
|
||
|
contract C {
|
||
|
using D for *;
|
||
|
function f(uint a) public returns (uint) {
|
||
|
// Bound to a, but self type does not match.
|
||
|
return a.double();
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (227-235): Member "double" not found or not visible after argument-dependent lookup in uint256
|