blob: 01ba2d34ba821f64fe4c92f8dde2c42412decbf0 [file] [log] [blame]
// 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.
/// @assertion Duration difference(DateTime other)
/// Throws [Error] if [other] is [:null:].
/// @description Checks that compile error appears if [other] is statically
/// [null].
/// @author iarkh
main() {
DateTime.now().difference(null);
// ^
// [analyzer] unspecified
// [cfe] unspecified
}