mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
413 B
Solidity
20 lines
413 B
Solidity
function id(uint x) pure returns (uint) {
|
|
return x;
|
|
}
|
|
|
|
function zero(address) pure returns (address) {
|
|
return address(0);
|
|
}
|
|
|
|
contract C {
|
|
using * for *;
|
|
function f(uint x) pure external returns (uint) {
|
|
return x.id();
|
|
}
|
|
function g(address a) pure external returns (address) {
|
|
return a.zero();
|
|
}
|
|
}
|
|
// ----
|
|
// ParserError 2314: (156-157): Expected identifier but got '*'
|