mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test case for user operator bind a bound free function
This commit is contained in:
parent
b5f61285b7
commit
616988da15
@ -0,0 +1,12 @@
|
|||||||
|
type Int is uint;
|
||||||
|
using {f} for Int;
|
||||||
|
|
||||||
|
Int constant v;
|
||||||
|
using {v.f as +} for Int;
|
||||||
|
|
||||||
|
function f(Int) pure returns (Int) {
|
||||||
|
return Int.wrap(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----
|
||||||
|
// DeclarationError 7920: (61-64): Identifier not found or not unique.
|
Loading…
Reference in New Issue
Block a user