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
contractA {
/** @notice postcondition x + 1 == y */function g(intx) publicpurevirtualreturns (inty) {
return A.f(x); // Explicit scoping with current contract name
}
}
contractBisA {
function g(intx) publicpureoverridereturns (int) {
int z = A.g(x); // Explicit scoping with base nameassert(z == x +1);
return z;
}
}
This is happening because B::g overrides A::g and seems to inherits the tags (and hence the spec) of A::g.
basic/ExplicitScopings.sol
giveswhere
y
is the return value of the annotated functionThe text was updated successfully, but these errors were encountered: