blob: a1034d52510b1f270c92138ed197f7bb26388db3 [file] [log] [blame]
// Copyright (c) 2019, 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.
// @dart = 2.6
// Requirements=nnbd-weak
import 'package:expect/expect.dart';
import 'mixed_bottom_type_lib.dart';
main() {
// The subtype check `void Function(String) <: void Function(Null)` should be
// true in weak mode semantics since `Null` is considered a bottom type in
// legacy subtyping rules.
Expect.isTrue(stringFunction is void Function(Null));
}