Files
sdk/pkg/front_end/testcases/nnbd/null_check_context.dart
T
Dmitry Stefantsov 5f29d40b0f [cfe] Make context of the null-check operator nullable
Closes #37692.

Bug: http://dartbug.com/37692
Change-Id: I2301cf693dc82133681e3969211103bc57880d82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134330
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-02-05 14:40:39 +00:00

11 lines
288 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.
abstract class A {
T bar<T>();
String foo() => bar()!;
}
main() {}