itemisCREATE / solidity-ide

Solidity plugin for Eclipse
Eclipse Public License 1.0
86 stars 25 forks source link

Adding override keyword to the grammar #327

Closed jthoene closed 4 years ago

jthoene commented 4 years ago

With version 0.6 the realization of unimplemented functions must be declared with the keyword 'override'. This needs to be added in our grammar.

Example:

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.0;

abstract contract Feline {
    function utterance() public virtual returns (bytes32);
}

contract Cat is Feline {
    function utterance() public override returns (bytes32) { return "miaow"; }
}