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){