Fix tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-06-13 19:10:22 +02:00
parent 3e00f750ef
commit eb57a46b0b
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ ParsedStatement *Parser::ParseFunctionDeclaration(const IToken *current) {
}
auto typeToken = (IdentifierToken*)type;
auto identifierToken = (IdentifierToken*)identifier;
parameters.push_back(new TypedVariableIdentifier(typeToken->GetValue(), typeToken->GetValue()));
parameters.push_back(new TypedVariableIdentifier(typeToken->GetValue(), identifierToken->GetValue()));
auto nextKind = next->GetKind();
if (nextKind == TokenKind::CloseParenthesis || nextKind == TokenKind::EndOfFile){