mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow comparison operators on contracts
This commit is contained in:
@@ -6,7 +6,7 @@ contract A {
|
||||
function different_salt() public returns (bool) {
|
||||
B x = new B{salt: "abc"}();
|
||||
B y = new B{salt: "abcef"}();
|
||||
return x != y;
|
||||
return address(x) != address(y);
|
||||
}
|
||||
function same_salt() public returns (bool) {
|
||||
B x = new B{salt: "xyz"}();
|
||||
|
||||
Reference in New Issue
Block a user