diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-10-26 21:57:42 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-11-11 22:51:54 +0800 |
commit | 6c15757618924a0da4491a243740c7bf0f70f60f (patch) | |
tree | 3aa6ff2824fd0af14472a6218aab47e94a9e5e65 /libsolidity/analysis | |
parent | 33590d513e278526bdfbf4bd18ea5236a8911bb0 (diff) | |
download | dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar.gz dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar.bz2 dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar.lz dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar.xz dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.tar.zst dexon-solidity-6c15757618924a0da4491a243740c7bf0f70f60f.zip |
Type checker: move the burden of computing mobile type to commonType
This solves #621
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 46f4f7f6..f934b2c8 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -996,9 +996,9 @@ bool TypeChecker::visit(TupleExpression const& _tuple) fatalTypeError(components[i]->location(), "Invalid mobile type."); if (i == 0) - inlineArrayType = types[i]->mobileType(); + inlineArrayType = types[i]; else if (inlineArrayType) - inlineArrayType = Type::commonType(inlineArrayType, types[i]->mobileType()); + inlineArrayType = Type::commonType(inlineArrayType, types[i]); } } else |