aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-08-06 21:39:42 +0800
committerchriseth <c@ethdev.com>2015-08-07 23:50:54 +0800
commitb1563878b68ddd4eb8c2ed21aa33b555dbbee8cd (patch)
tree64046651f559f9c8021b40772db92ebe3e527505 /Types.h
parentab33328d1f6d9e76d5294bb30785adb86e7175a5 (diff)
downloaddexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar.gz
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar.bz2
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar.lz
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar.xz
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.tar.zst
dexon-solidity-b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd.zip
Disallow comparison for reference types.
Fixes #2690
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Types.h b/Types.h
index bc499d59..c4992cfd 100644
--- a/Types.h
+++ b/Types.h
@@ -409,6 +409,10 @@ public:
DataLocation location() const { return m_location; }
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override;
+ virtual TypePointer binaryOperatorResult(Token::Value, TypePointer const&) const override
+ {
+ return TypePointer();
+ }
virtual unsigned memoryHeadSize() const override { return 32; }
/// @returns a copy of this type with location (recursively) changed to @a _location,