You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing about this one is that any combination of attributes are inextricably linked because the code they generate is not strictly additive. Each attribute does a scan for the other attributes.
Making this more intitive for users would require a change of syntax that uses a single attribute. E.g.,
#[contract( requires( n != T::zero() || d != T::zero())], ensures( ret != T::zero() && n % ret == T::zero() && d % ret == T::zero()),)]pubfneuclidean<T>(n:T,d:T) -> T
see https://gitlab.com/karroffel/contracts/-/issues/18
The text was updated successfully, but these errors were encountered: