diff options
author | chriseth <chris@ethereum.org> | 2018-11-30 16:26:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 16:26:08 +0800 |
commit | d6d41b2bc7040bbae8d4d3b3522d637e37836a1d (patch) | |
tree | 4ce4bc3cf84ba8c67d288a3d45f2edd7f86ca52d /test/libsolidity/syntaxTests | |
parent | a7ca4991df9fce4a27a402e9ab02bfb0c9b25910 (diff) | |
parent | 73a64da041efb2b64b1c89ed6012161cb278e24e (diff) | |
download | dexon-solidity-d6d41b2bc7040bbae8d4d3b3522d637e37836a1d.tar.gz dexon-solidity-d6d41b2bc7040bbae8d4d3b3522d637e37836a1d.tar.zst dexon-solidity-d6d41b2bc7040bbae8d4d3b3522d637e37836a1d.zip |
Merge pull request #5548 from ethereum/fixMemberAccess
Fix bug related to state variables of function type accessed via base contract.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r-- | test/libsolidity/syntaxTests/memberLookup/internal_function_type.sol | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/memberLookup/internal_function_type.sol b/test/libsolidity/syntaxTests/memberLookup/internal_function_type.sol new file mode 100644 index 00000000..560a6c2a --- /dev/null +++ b/test/libsolidity/syntaxTests/memberLookup/internal_function_type.sol @@ -0,0 +1,7 @@ +contract C { + function () internal returns (uint) x; + constructor() public { + C.x = g; + } + function g() public pure returns (uint) {} +} |