warp
warp copied to clipboard
Same name contract & struct
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 { }