diff options
author | chriseth <c@ethdev.com> | 2015-08-06 21:39:42 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-08-07 23:50:54 +0800 |
commit | b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd (patch) | |
tree | 64046651f559f9c8021b40772db92ebe3e527505 | |
parent | ab33328d1f6d9e76d5294bb30785adb86e7175a5 (diff) | |
download | dexon-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
-rw-r--r-- | Types.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |