solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol
2018-07-16 16:11:39 +01:00

7 lines
203 B
Solidity

contract C {
string s;
function f() public { uint a = s.length; }
}
// ----
// TypeError: (62-70): Member "length" not found or not visible after argument-dependent lookup in string storage ref.