From eb57a46b0b86329e4bedd06832077d0eb60add7c Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 13 Jun 2019 19:10:22 +0200 Subject: [PATCH] Fix tests --- src/Parser/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 8de03c9..2cd6a31 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -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){