mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 11:11:05 +00:00
Initialize _BroadcastSubscription._eventState to permit inference of non-null value
BUG= R=floitsch@google.com Review URL: https://codereview.chromium.org/1576153005 .
This commit is contained in:
parent
6c8a3e0053
commit
2bae30eb27
|
@ -23,7 +23,7 @@ class _BroadcastSubscription<T> extends _ControllerSubscription<T>
|
|||
// TODO(lrn): Use the _state field on _ControllerSubscription to
|
||||
// also store this state. Requires that the subscription implementation
|
||||
// does not assume that it's use of the state integer is the only use.
|
||||
int _eventState;
|
||||
int _eventState = 0; // Initialized to help dart2js type inference.
|
||||
|
||||
_BroadcastSubscriptionLink _next;
|
||||
_BroadcastSubscriptionLink _previous;
|
||||
|
|
Loading…
Reference in a new issue