Remove out of date TODOs

This commit is contained in:
wechman 2022-07-12 11:55:24 +02:00
parent f9a6da293f
commit c274d07a73
3 changed files with 0 additions and 3 deletions

View File

@ -178,7 +178,6 @@ struct ConstStateVarCircularReferenceChecker: public PostTypeChecker::Checker
bool visit(Identifier const& _identifier) override bool visit(Identifier const& _identifier) override
{ {
// TODO add user defined operators?
if (m_currentConstVariable) if (m_currentConstVariable)
if (auto var = dynamic_cast<VariableDeclaration const*>(_identifier.annotation().referencedDeclaration)) if (auto var = dynamic_cast<VariableDeclaration const*>(_identifier.annotation().referencedDeclaration))
if (var->isConstant()) if (var->isConstant())

View File

@ -314,7 +314,6 @@ struct MemberAccessAnnotation: ExpressionAnnotation
struct OperationAnnotation: ExpressionAnnotation struct OperationAnnotation: ExpressionAnnotation
{ {
// TODO should this be more like "referencedDeclaration"?
FunctionDefinition const* userDefinedFunction = nullptr; FunctionDefinition const* userDefinedFunction = nullptr;
}; };

View File

@ -60,7 +60,6 @@ function geq(Int x, Int) pure returns (bool) {
return uw(x) >= 10; return uw(x) >= 10;
} }
// TODO test that side-effects are executed properly.
contract C { contract C {
function test_bitor() public pure returns (Int) { return w(1) | w(2); } function test_bitor() public pure returns (Int) { return w(1) | w(2); }
function test_bitand() public pure returns (Int) { return w(1) | w(2); } function test_bitand() public pure returns (Int) { return w(1) | w(2); }