You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
The current codegen puts static fields inside dart.generic ... that's broken, as it means the static field corresponds to the instantiation of the generic class. From outside, we always refer to the dynamic substitution, but from inside, if unqualified static field, we accidentally refer to the current generic type. So, Foo.bar instead of Foo.bar
This can be observed for mutable fields, as well as lazy final ones (it will be initialized multiple times)
The current codegen puts static fields inside
dart.generic
... that's broken, as it means the static field corresponds to the instantiation of the generic class. From outside, we always refer to the dynamic substitution, but from inside, if unqualified static field, we accidentally refer to the current generic type. So, Foo.bar instead of Foo.barThis can be observed for mutable fields, as well as lazy final ones (it will be initialized multiple times)
Fixed in https://codereview.chromium.org/1133593004
The text was updated successfully, but these errors were encountered: