contract ExampleContract {
string immutable public name;
constructor(string memory _name) {
name = _name;
}
// ERROR: Cannot compile
function cannotChangeTheName(string calldata _newName) external {
name = _newName;
}
}
contract ExampleContract {
string immutable public name;
constructor(string memory _name) {
name = _name;
}
// ERROR: Cannot compile
function cannotChangeTheName(string calldata _newName) external {
name = _newName;
}
}