mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
208 B
Solidity
7 lines
208 B
Solidity
|
contract C {
|
||
|
function f() public returns (uint) { var x; return 2; }
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (54-59): Use of the "var" keyword is deprecated.
|
||
|
// TypeError: (54-59): Assignment necessary for type detection.
|