Files
sdk/pkg/front_end/testcases/nnbd_mixed/issue42181.dart
T
Johnni Winther fad5548840 [cfe] Add test for issue for opt-in import of opt-out typedef
Closes #42181

Change-Id: I1557a5843cba6001580d8ff19cd1864e7bc37c48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155400
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-27 18:41:54 +00:00

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() {}