diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-20 20:30:00 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-03-25 20:59:39 +0800 |
commit | 011d95e7e348908b1027dea922a429517cdebf07 (patch) | |
tree | 01dbc166bc693e56a23e0d9bf7f83b7652483690 /Types.h | |
parent | 60204d593e48d2f4395a34c3e7bb010d4f40e513 (diff) | |
download | dexon-solidity-011d95e7e348908b1027dea922a429517cdebf07.tar.gz dexon-solidity-011d95e7e348908b1027dea922a429517cdebf07.tar.zst dexon-solidity-011d95e7e348908b1027dea922a429517cdebf07.zip |
- added externalType to BooleanType.
- fixed the error message
Diffstat (limited to 'Types.h')
-rw-r--r-- | Types.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -263,7 +263,6 @@ public: virtual std::string toString() const override; virtual u256 literalValue(Literal const* _literal) const override; virtual TypePointer getRealType() const override; - virtual TypePointer externalType() const override { return shared_from_this(); } /// @returns the smallest integer type that can hold the value or an empty pointer if not possible. std::shared_ptr<IntegerType const> getIntegerType() const; @@ -298,6 +297,7 @@ public: virtual std::string toString() const override { return "bytes" + dev::toString(m_bytes); } virtual u256 literalValue(Literal const* _literal) const override; + virtual TypePointer externalType() const override { return shared_from_this(); } int getNumBytes() const { return m_bytes; } @@ -323,6 +323,7 @@ public: virtual std::string toString() const override { return "bool"; } virtual u256 literalValue(Literal const* _literal) const override; + virtual TypePointer externalType() const override { return shared_from_this(); } }; /** |