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
pragma solidity 0.4.13;
contract Foo {
bool public open;
function open() external {
}
function main() {
this.open();
}
}
InferType will infer the type of this.open() to be function() instead of function() returns (bool). Since this edge case is only possible on 0.4.x (otherwise this is a compiler error), and its on a rare edge cases (seen twice in 75K contracts) that is bad coding behavior anyway (shadowing between function and public state var), we are not fixing it right away. Just marking it so we don't loose track of it.
The text was updated successfully, but these errors were encountered:
Given the following code:
InferType
will infer the type ofthis.open()
to befunction()
instead offunction() returns (bool)
. Since this edge case is only possible on 0.4.x (otherwise this is a compiler error), and its on a rare edge cases (seen twice in 75K contracts) that is bad coding behavior anyway (shadowing between function and public state var), we are not fixing it right away. Just marking it so we don't loose track of it.The text was updated successfully, but these errors were encountered: