Extend function type comparison test

This commit is contained in:
Alex Beregszaszi 2018-05-30 06:16:35 +01:00
parent 8f04c59046
commit 6eedc6e797

View File

@ -290,6 +290,22 @@ BOOST_AUTO_TEST_CASE(comparison_of_function_types)
}
)";
CHECK_ERROR(text, TypeError, "Operator < not compatible");
text = R"(
contract C {
function f() public returns (bool ret) {
return this.f > this.f;
}
}
)";
CHECK_ERROR(text, TypeError, "Operator > not compatible");
text = R"(
contract C {
function f() public returns (bool ret) {
return f > f;
}
}
)";
CHECK_ERROR(text, TypeError, "Operator > not compatible");
text = R"(
contract C {
function f() public returns (bool ret) {