aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-20 20:30:00 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-25 20:59:39 +0800
commit011d95e7e348908b1027dea922a429517cdebf07 (patch)
tree01dbc166bc693e56a23e0d9bf7f83b7652483690 /Types.h
parent60204d593e48d2f4395a34c3e7bb010d4f40e513 (diff)
downloaddexon-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types.h b/Types.h
index 013c6589..5941646a 100644
--- a/Types.h
+++ b/Types.h
@@ -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(); }
};
/**