Calamity210 / BirbLang

Minimal Bird programming language curated to help new contributers delve into OSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Infinite loop when performing operations on parameters

Calamity210 opened this issue · comments

commented

Performing operations on function parameters causes the program to get stuck within an infinite loop

Steps to reproduce the behavior:

  1. Launch birb shell with the birb command
  2. Type
void addAndPrint(int a, int b) {
   screm(a+b);
}

addAndPrint(5, 7);
  1. Run program with runBirb() command
  2. See error

The program should be printing 12

Starts the loop within visitFuncCall (runtime.dart)

commented

Corrected in cb92a32