contract ExampleContract { string immutable public name; constructor(string memory _name) { name = _name; } // ERROR: Cannot compile function cannotChangeTheName(string calldata _newName) external { name = _newName; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter