diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2016-01-11 16:50:47 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2016-01-23 01:14:01 +0800 |
commit | ac3019298a42e87a2a9182b2a80a019e31d64f88 (patch) | |
tree | c0e3c657d4b78e2c31b4a71f30f1a77f14135a44 /libsolidity | |
parent | 1cd32883117d7ae398b74797b7e33f077f6cd677 (diff) | |
download | dexon-solidity-ac3019298a42e87a2a9182b2a80a019e31d64f88.tar.gz dexon-solidity-ac3019298a42e87a2a9182b2a80a019e31d64f88.tar.zst dexon-solidity-ac3019298a42e87a2a9182b2a80a019e31d64f88.zip |
[cond-expr] add a test for different types
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index b4896b49..a8125573 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -759,7 +759,7 @@ bool TypeChecker::visit(Conditional const& _conditional) commonType = trueType; else // we fake it as an equal operator, but any other comparison operator can work. - TypePointer commonType = trueType->binaryOperatorResult(Token::Equal, falseType); + commonType = trueType->binaryOperatorResult(Token::Equal, falseType); if (!commonType) { typeError( |