Files
sdk/pkg/front_end/testcases/nnbd_mixed/issue41435_lib.dart
T
Johnni Winther f90391a12d [cfe] Add regression test for issue 41435
The failure seems to have been fixed elsewhere.

Closes #41435

Change-Id: Iab3c0b3ff8dda2d498c854f35d5fea01f46ca899
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149284
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-06-02 08:20:31 +00:00

9 lines
353 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.
Never x = throw "Unreachable";
void takesNever(Never x) {}
void takesTakesNull(void Function(Null) f) {}
void Function(Null) f = (n) {};