Preview:
pragma solidity ^0.8.12;
contract BadContract {

	function useArrays(string calldata input) public pure returns(string memory) {
		return input[0]; // error
	}
}
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