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]

Calamity210 opened this issue · comments

commented

Describe the bug
Cant access Lists or Maps from within a class directly

To Reproduce
Steps to reproduce the behavior:

  1. Launch birb shell with the birb command
  2. Type
class Foo {
   List list = ["value"];
}

screm(Foo.list[0]);
  1. Run program with runBirb command
  2. See error

Expected behavior
Expected to print value.

Additional context
The scope gets messed up and the program tries to find a list within the global scope.

commented

Was an error of not passing the correct scope to list access types

commented

corrected in 61d1a25