mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:51:30 +00:00
6786f1944a
Tests that have begun failing due to this change are marked with a reference to issue #31402. Change-Id: I3d29a1058af5ba43bc2868d85de1e9d87b666ee2 Reviewed-on: https://dart-review.googlesource.com/23080 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
15 lines
372 B
Dart
15 lines
372 B
Dart
// Copyright (c) 2017, 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";
|
|
|
|
void main() {
|
|
Object b = true;
|
|
!b; // No error
|
|
b = new Object();
|
|
Expect.throwsTypeError(() {
|
|
!b;
|
|
});
|
|
}
|