Merge pull request #10346 from ethereum/boundFunctions

[Sol->Yul] Bound functions.
This commit is contained in:
chriseth
2020-11-23 19:09:20 +01:00
committed by GitHub
11 changed files with 96 additions and 24 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
Error (1834): Unimplemented feature error in <FILENAME REMOVED>
--> yul_unimplemented/input.sol:8:9:
--> yul_unimplemented/input.sol:5:16:
|
8 | x.f();
| ^^^^^
5 | return type(test).name;
| ^^^^^^^^^^^^^^^
@@ -1,10 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
library L { function f(uint) public {} }
contract test {
using L for uint;
function f() public {
uint x;
x.f();
function f() public pure returns (string memory) {
return type(test).name;
}
}