mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
343 B
Solidity
15 lines
343 B
Solidity
library L {
|
|
function suffix(uint8) internal pure returns (uint8) {}
|
|
function suffix(uint16) internal pure returns (bytes16) {}
|
|
}
|
|
|
|
contract C {
|
|
using L for uint8;
|
|
|
|
function f(uint8 x) public {
|
|
1 x.suffix;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 6675: (218-226): Member "suffix" not unique after argument-dependent lookup in uint8.
|