blob: 96ef9a7a8b2d74aa4b49e361af507d10c62560e9 [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 double operator %(num other)
* Throws [Error] if [other] is [:null:].
* @description Checks that compile error occurs if [other] is statically [:null:].
* @author iarkh
*/
import "../../../Utils/expect.dart";
double d = 99.99999999999999;
main() {
d % null;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}