aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/empty_string_var.sol
blob: e9837590acaa47d113d798c6cab19ed70607e4ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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".