-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The following snippet typechecks but should not (note the argument type to the methods for the ()
instance).
data uint256 = uint256(word);
forall self . class self:ABIAttribs {`
function headSize(ty:Proxy(self)) -> word;
function isStatic(ty:Proxy(self)) -> bool;
}
instance ():ABIAttribs {
function headSize(ty : Proxy(uint256)) -> word { return 0; }
function isStatic(ty : Proxy(uint256)) -> bool { return true; }
}
instance uint256:ABIAttribs {
function headSize(ty : Proxy(uint256)) -> word { return 32; }
function isStatic(ty : Proxy(uint256)) -> bool { return true; }
}
Metadata
Metadata
Assignees
Labels
No labels