mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extend function type comparison test
This commit is contained in:
parent
8f04c59046
commit
6eedc6e797
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user