Fix missing quote in error message for invalid Yul types

This commit is contained in:
Alex Beregszaszi 2020-07-10 21:06:09 +01:00
parent 65ed93d99f
commit 20dd66f398
3 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ void AsmAnalyzer::operator()(VariableDeclaration const& _varDecl)
m_errorReporter.typeError(
3947_error,
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
// ----
// 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
// ----
// 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: (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".