aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/conversion/allowed_conversion_to_string.sol
blob: f7e96f35b135ba510b949307691d75febc8d8fad (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    string a;
    string b;
    function f() public view {
        string storage c = a;
        string memory d = b;
        d = string(c);
    }
}