Merge pull request #9384 from ethereum/yul-err-typo

Fix missing quote in error message for invalid Yul types
This commit is contained in:
chriseth 2020-07-13 11:28:55 +02:00 committed by GitHub
commit c90d3a3558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ void AsmAnalyzer::operator()(VariableDeclaration const& _varDecl)
m_errorReporter.typeError( m_errorReporter.typeError(
3947_error, 3947_error,
variable.location, variable.location,
"Assigning value of type \"" + givenType.str() + "\" to variable of type \"" + variable.type.str() + "." "Assigning value of type \"" + givenType.str() + "\" to variable of type \"" + variable.type.str() + "\"."
); );
} }
} }

View File

@ -5,4 +5,4 @@
// dialect: evmTyped // dialect: evmTyped
// ---- // ----
// TypeError 5473: (15-28): "invalidType" is not a valid type (user defined types are not yet supported). // TypeError 5473: (15-28): "invalidType" is not a valid type (user defined types are not yet supported).
// TypeError 3947: (10-11): Assigning value of type "invalidType" to variable of type "u256. // TypeError 3947: (10-11): Assigning value of type "invalidType" to variable of type "u256".

View File

@ -8,5 +8,5 @@
// ==== // ====
// dialect: evmTyped // dialect: evmTyped
// ---- // ----
// TypeError 3947: (126-127): Assigning value of type "bool" to variable of type "u256. // TypeError 3947: (126-127): Assigning value of type "bool" to variable of type "u256".
// TypeError 3947: (129-136): Assigning value of type "u256" to variable of type "bool. // TypeError 3947: (129-136): Assigning value of type "u256" to variable of type "bool".