8866165950
Fixes https://github.com/dart-lang/sdk/issues/36832 Change-Id: Ie0869ca350d1951e0736a9d6c92da4a7984117ee Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101180 Commit-Queue: Vijay Menon <vsm@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Reviewed-by: Leaf Petersen <leafp@google.com>
15 lines
471 B
Dart
15 lines
471 B
Dart
// 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.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
void main() {
|
|
final f1 = () => throw null;
|
|
final f2 = () => null;
|
|
Expect.equals(f1.runtimeType, f2.runtimeType);
|
|
|
|
final Bottom = (<F>(F Function() f) => F)(() => throw null);
|
|
Expect.equals(Null, Bottom);
|
|
}
|