d747c51d8f
This is a fix for CFE of the same issue as reported in https://github.com/dart-lang/sdk/issues/39694 Change-Id: Ied7fb27c8074f4c4ddbac29c8470544e9f32712a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131065 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
12 lines
337 B
Dart
12 lines
337 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.
|
|
|
|
// Regression test for http://dartbug.com/39694.
|
|
|
|
Object f() => g(null) ?? 0;
|
|
T g<T>(T t) => t;
|
|
main() {
|
|
print(f());
|
|
}
|