blob: fae918b71f7cb4dcda082e8651340adc90549258 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
library D { function double(uint self) public returns (uint) { return 2; } }
contract C {
using D for uint;
function f(uint16 a) public returns (uint) {
// This is an error because the function is only bound to uint.
// Had it been bound to *, it would have worked.
return a.double();
}
}
// ----
// TypeError: (305-313): Member "double" not found or not visible after argument-dependent lookup in uint16
|