This is the error i get.
ParserError: Expected pragma, import directive or contract/interface/library definition.
This is my Solidity contract code.
pragma solidity ^0.4.6
contract Inbox
{
string public message;
function Inbox(string intialMessage){
message = intialMessage;
}
function setMessage(string newMessage){
message = newMessage;
}
}
I cannot figure out why this parse error is occurring. I tried changing the solidity version as well. Didn't work out.