mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +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>
14 lines
408 B
Dart
14 lines
408 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(() {
|
|
AsyncError(null as dynamic, StackTrace.current);
|
|
});
|
|
}
|