Under Review
over 2 years ago

Bug report: static Lang.Dictionary class variable broken in SDK 4.1.6

With previous versions, it was possible to have static dictionaries inside classes. With SDK version 4.1.6, it is not working anymore.

Previously working:

class Test {
  static private var some_variable = {};
  static function test(some_arg){
    return;
  }
  static function other(some_arg){
    return some_variable.get(some_arg);
  }
}

Now with 4.1.6, the debugger throws a runtime 'some_variable not found' error as soon the static function test is called.

- tested with different variable types, only Lang.Dictionary causes the above error.
- the static dictionary needs to be accessed in some other static function, so removing the static qualifier is not an option.