mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
330 B
Solidity
11 lines
330 B
Solidity
|
contract C {
|
||
|
mapping(uint => uint) x;
|
||
|
function f() public returns (bool ret) {
|
||
|
var y = x;
|
||
|
return x == y;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (95-100): Use of the "var" keyword is deprecated.
|
||
|
// TypeError: (121-127): Operator == not compatible with types mapping(uint256 => uint256) and mapping(uint256 => uint256)
|