aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-03-06 21:38:29 +0800
committerchriseth <c@ethdev.com>2017-03-06 21:42:28 +0800
commitc500d9f717d50137be7d9507dfc4abf0840caf48 (patch)
tree9d3c5f7a6183b6a4c9716f5a6f14172d7c7caa7a /libsolidity
parentfe5f85ef344dff2ecefb7ac3782221f9cf5effc1 (diff)
downloaddexon-solidity-c500d9f717d50137be7d9507dfc4abf0840caf48.tar.gz
dexon-solidity-c500d9f717d50137be7d9507dfc4abf0840caf48.tar.zst
dexon-solidity-c500d9f717d50137be7d9507dfc4abf0840caf48.zip
Convert to mobile type for array type.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 5426cd17..54139546 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1014,7 +1014,7 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
fatalTypeError(components[i]->location(), "Invalid mobile type.");
if (i == 0)
- inlineArrayType = types[i];
+ inlineArrayType = types[i]->mobileType();
else if (inlineArrayType)
inlineArrayType = Type::commonType(inlineArrayType, types[i]);
}