mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
204 B
Solidity
8 lines
204 B
Solidity
contract C {
|
|
string s;
|
|
function f() public { var a = s[2]; }
|
|
}
|
|
// ----
|
|
// Warning: (53-58): Use of the "var" keyword is deprecated.
|
|
// TypeError: (61-65): Index access for string is not possible.
|