mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Warn if this is used in constructor
This commit is contained in:
committed by
Rhett Aultman
parent
84f8e7a467
commit
b3db1c361c
@@ -77,6 +77,12 @@ private:
|
||||
std::map<VariableDeclaration const*, int> m_localVarUseCount;
|
||||
|
||||
FunctionDefinition const* m_currentFunction = nullptr;
|
||||
|
||||
/// Flag that indicates a constructor.
|
||||
bool m_constructor = false;
|
||||
|
||||
/// Current contract.
|
||||
ContractDefinition const* m_currentContract = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user