[BUG]
Calamity210 opened this issue · comments
Describe the bug
Cant access List
s or Map
s from within a class directly
To Reproduce
Steps to reproduce the behavior:
- Launch birb shell with the
birb
command - Type
class Foo {
List list = ["value"];
}
screm(Foo.list[0]);
- Run program with
runBirb
command - 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.
Was an error of not passing the correct scope to list access types