diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol new file mode 100644 index 00000000..36be82c9 --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol @@ -0,0 +1,7 @@ +contract C { + string s; + function f() public { var a = s.length; } +} +// ---- +// Warning: (53-58): Use of the "var" keyword is deprecated. +// TypeError: (61-69): Member "length" not found or not visible after argument-dependent lookup in string storage ref |