mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
267 B
Solidity
12 lines
267 B
Solidity
function zero() pure suffix returns (uint) { return 1; }
|
|
|
|
contract C {
|
|
function f() public pure {
|
|
1 zero;
|
|
1.1 zero;
|
|
"a" zero;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9128: (13-15): Functions that take no arguments cannot be used as literal suffixes.
|