blob: ed6a9b374a029144636eb6517280bb8e337c52ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
contract Test {
string s;
bytes b;
function h(string calldata _s) pure external { bytes(_s).length; }
function i(string memory _s) pure internal { bytes(_s).length; }
function j() view internal { bytes(s).length; }
function k(bytes calldata _b) pure external { string(_b); }
function l(bytes memory _b) pure internal { string(_b); }
function m() view internal { string(b); }
}
// ----
|