mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
305 B
Solidity
12 lines
305 B
Solidity
contract C {
|
|
function f() {
|
|
var a = "";
|
|
bytes1 b = bytes1(a);
|
|
bytes memory c = bytes(a);
|
|
string memory d = string(a);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (34-39): Use of the "var" keyword is deprecated.
|
|
// TypeError: (61-70): Explicit type conversion not allowed from "string memory" to "bytes1".
|