mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update natspec comments on state variables.
- changing some warnings to errors
This commit is contained in:
@@ -697,7 +697,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
|
||||
}
|
||||
|
||||
if (!_options.isStateVariable && documentation != nullptr)
|
||||
parserWarning(2837_error, "Only state variables can have a docstring. This will be disallowed in 0.7.0.");
|
||||
parserError(2837_error, "Only state variables can have a docstring.");
|
||||
|
||||
if (dynamic_cast<FunctionTypeName*>(type.get()) && _options.isStateVariable && m_scanner->currentToken() == Token::LBrace)
|
||||
fatalParserError(
|
||||
|
||||
Reference in New Issue
Block a user