Files
sdk/pkg/_fe_analyzer_shared/lib
Paul Berry ef4c85e243 In null safe code, error if a final local is read when unassigned.
Previously, we did not permit a final local variable without an initializer.

This allows constructions like:

  final int i;
  if (...) {
    i = 0;
  } else {
    i = 1;
  }
  use(i);

Change-Id: I0ca20c810993627c70ce84a9ad238e683df41595
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/163702
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-09-22 15:26:14 +00:00
..