Files
sdk/pkg/front_end/testcases/nnbd_mixed/issue42003.dart
T
Johnni Winther f591ad7d88 [cfe] Only perform legacy-to-non-nullable conversion on inferred types
The exempts types for synthesized variables to avoid emitting a warning
on `o?.foo` when `o` is a legacy type.

Closes #42276
Closes #42003

Change-Id: Ideaf099e25c0d50a35a2e704a29aacceb22142b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151516
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-06-18 18:06:46 +00:00

10 lines
284 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'issue42003_lib.dart';
main() {
returnString()?.length;
}