Fix initializing variable (lmao)

This commit is contained in:
Nikita Lisitsa 2026-04-02 20:19:39 +03:00
parent 471b3319a2
commit b3fc435dd6

View file

@ -613,7 +613,7 @@ namespace pslang::ir
{ {
auto before = last(); auto before = last();
auto result = apply(*node.initializer); auto result = apply(*node.initializer);
if (result == before) if (before == last())
{ {
// Evaluating variable initializer didn't produce any nodes // Evaluating variable initializer didn't produce any nodes
// It must have been just a reference to another variable or smth like that // It must have been just a reference to another variable or smth like that