Could not compile source code with ethereum wallet

I've developed a contract using the Solidity Browser. It works fine.
Then I copied the code in the Ethereum Wallet SOLIDITY CONTRACT SOURCE CODE but
I get this error:
                 Could not compile source code. 

Expected primary expression.
modifier onlyAfter(uint _time) { if (now <= _time) throw; _; }

^

The code that causes the problem is:
                  contract MyContract {

modifier onlyAfter(uint _time) { if (now <= _time) throw; _; }
modifier onlyBefore(uint _time) { if (now >= _time) throw; _; }

Do you know what the problem could be?
Thanks


Comments

Sign In or Register to comment.