diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 20:28:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 20:28:20 +0800 |
commit | 238dbe1b9904cee916089ab51b81a5368b80dda3 (patch) | |
tree | b1c42459ae4cce29241b4e2a933bd6649e0c3b7c /libsolidity/interface | |
parent | 28ac3f0a6c8c532e79aaa3bff1e1a7d8ac7d8cb0 (diff) | |
parent | f7a9c4203e35439de6ff4bdd94c7083c16b73e43 (diff) | |
download | dexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.tar.gz dexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.tar.zst dexon-solidity-238dbe1b9904cee916089ab51b81a5368b80dda3.zip |
Merge pull request #4388 from ethereum/noPackedLiterals
Disallow packed encoding of literals.
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/ErrorReporter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h index d1a0030f..fd53587a 100644 --- a/libsolidity/interface/ErrorReporter.h +++ b/libsolidity/interface/ErrorReporter.h @@ -92,6 +92,12 @@ public: void clear(); + /// @returns true iff there is any error (ignores warnings). + bool hasErrors() const + { + return m_errorCount > 0; + } + private: void error(Error::Type _type, SourceLocation const& _location, |