Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4058ce8 commit 75ca072Copy full SHA for 75ca072
libsolidity/codegen/ir/IRGenerator.cpp
@@ -203,7 +203,7 @@ string IRGenerator::generateGetter(VariableDeclaration const& _varDecl)
203
204
if (auto const* mappingType = dynamic_cast<MappingType const*>(type))
205
return m_context.functionCollector().createFunction(functionName, [&]() {
206
- solAssert(!_varDecl.isConstant(), "");
+ solAssert(!_varDecl.isConstant() && !_varDecl.immutable(), "");
207
pair<u256, unsigned> slot_offset = m_context.storageLocationOfVariable(_varDecl);
208
solAssert(slot_offset.second == 0, "");
209
FunctionType funType(_varDecl);
0 commit comments