c246fa1f2b
Bug: 36956 Change-Id: I5b8f40f5c1f7fd9304b02054e3d8d7d607c12af1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106021 Commit-Queue: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Paul Berry <paulberry@google.com>
14 lines
426 B
Dart
14 lines
426 B
Dart
// Copyright (c) 2013, 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";
|
|
|
|
main() {
|
|
Expect.throwsNoSuchMethodError(() => -(null as dynamic));
|
|
// Make sure we have an untyped call to operator-.
|
|
print(-array[0]);
|
|
}
|
|
|
|
var array = <dynamic>[1];
|