warp icon indicating copy to clipboard operation
warp copied to clipboard

Same name contract & struct

Open piwonskp opened this issue 2 years ago • 0 comments

Same name contract & struct

Error in context, getting the node type it get’s confused between a struct and a same named contract.

Example:

pragma solidity 0.8;

contract Yarp {
    struct Warp {
        uint8 m1;
    }

    function getWarpM1(Warp memory w) public pure returns (uint8) {
        return w.m1;
    } 
}

contract Warp is Yarp { }

piwonskp avatar Jan 15 '23 19:01 piwonskp