mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Bugfix: Special case of statements starting with type conversion.
This commit is contained in:
		
							parent
							
								
									e9eef77489
								
							
						
					
					
						commit
						5dd8f3a937
					
				| @ -290,10 +290,10 @@ ASTPointer<Statement> Parser::parseStatement() | ||||
| 		// We have a variable definition if we ge a keyword that specifies a type name, or
 | ||||
| 		// in the case of a user-defined type, we have two identifiers following each other.
 | ||||
| 		if (m_scanner->getCurrentToken() == Token::MAPPING || | ||||
| 			m_scanner->getCurrentToken() == Token::VAR || | ||||
| 			Token::isElementaryTypeName(m_scanner->getCurrentToken()) || | ||||
| 			(m_scanner->getCurrentToken() == Token::IDENTIFIER && | ||||
| 			 m_scanner->peekNextToken() == Token::IDENTIFIER)) | ||||
| 				m_scanner->getCurrentToken() == Token::VAR || | ||||
| 				((Token::isElementaryTypeName(m_scanner->getCurrentToken()) || | ||||
| 				m_scanner->getCurrentToken() == Token::IDENTIFIER) && | ||||
| 				m_scanner->peekNextToken() == Token::IDENTIFIER)) | ||||
| 			statement = parseVariableDefinition(); | ||||
| 		else // "ordinary" expression
 | ||||
| 			statement = parseExpression(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user