fad5548840
Closes #42181 Change-Id: I1557a5843cba6001580d8ff19cd1864e7bc37c48 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155400 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
15 lines
348 B
Dart
15 lines
348 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 'issue42181_lib.dart';
|
|
|
|
int? f1(int x) => x;
|
|
|
|
void test() {
|
|
F f = null; // Static error
|
|
f = f1; // No error
|
|
}
|
|
|
|
main() {}
|