solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/189_string_length.sol

7 lines
203 B
Solidity
Raw Normal View History

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.