diff --git a/scripts/test/index-dictionaries.toy b/scripts/test/index-dictionaries.toy index 1626dc8..6bba7ea 100644 --- a/scripts/test/index-dictionaries.toy +++ b/scripts/test/index-dictionaries.toy @@ -18,4 +18,4 @@ } -print "All good"; \ No newline at end of file +print "All good"; diff --git a/source/interpreter.c b/source/interpreter.c index 2c4ddd4..b657117 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -1697,7 +1697,7 @@ static bool execDotAssign(Interpreter* interpreter) { return false; } - Literal idn = copyLiteral(compound); + Literal idn = compound; if (!parseIdentifierToValue(interpreter, &compound)) { freeLiteral(assign); @@ -2459,4 +2459,4 @@ void freeInterpreter(Interpreter* interpreter) { freeLiteralDictionary(interpreter->exportTypes); FREE(LiteralDictionary, interpreter->exportTypes); interpreter->exportTypes = NULL; -} \ No newline at end of file +}