Update tests for function type comparison

This commit is contained in:
Alex Beregszaszi 2017-06-26 22:01:35 +01:00
parent 4407a13c17
commit 6b05bbbbb4

View File

@ -571,6 +571,17 @@ BOOST_AUTO_TEST_CASE(comparison_of_function_types)
}
}
)";
CHECK_ERROR(text, TypeError, "Operator < not compatible");
text = R"(
contract C {
function f() returns (bool ret) {
return f == f;
}
function g() returns (bool ret) {
return f != f;
}
}
)";
CHECK_SUCCESS(text);
}