mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
312 B
Solidity
7 lines
312 B
Solidity
contract C {
|
|
function f() public { string x = "abc"; }
|
|
}
|
|
// ----
|
|
// Warning: (39-47): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
|
|
// TypeError: (39-55): Type literal_string "abc" is not implicitly convertible to expected type string storage pointer.
|