Closed d10r closed 7 years ago
Having the same problem with solc 0.4.15 also... fresh install this friday.
Same issue.
Environment:
Same problem.
We must wait for update solidity-parser package that implement interface support PR has been merged yet but realease not published yet https://github.com/ConsenSys/solidity-parser/pull/68
OR You can swap to beta version of truffle.
This has already been asked in the Gitter channel by others, but not answered (as far as I could see).
Issue
Compiling files containing interface definitions fails with
Steps to Reproduce
Create a solidity file containing an interface definition, e.g.
and try to have it compiled with
truffle compile
.Expected Behavior
Since the interface keyword is supported since Solidity 0.4.11 (seeChangelog), truffle - which is using solc 0.4.15 - should recognize it.
In Remix IDE, the behaviour is as expected. If the compiler version is at least 0.4.11, files with interface definitions compile.
Actual Results
Environment