mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:37:12 +00:00
1003e91a35
All code which was tested now throws a TypeError in both sound and unsound null safe mode. Change-Id: I304dfa6b8683223562f8613f3d14823fccab35bd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170439 Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Erik Ernst <eernst@google.com>
15 lines
390 B
Dart
15 lines
390 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 'dart:async';
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
main() {
|
|
// The error cannot be null.
|
|
Expect.throwsTypeError(() {
|
|
Future.error(null as dynamic);
|
|
});
|
|
}
|