mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 22:21:18 +00:00
245340dd7f
Change-Id: I788d50dc3d95bb4652ff122a993cd092d7262c31 Reviewed-on: https://dart-review.googlesource.com/23160 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
15 lines
384 B
Dart
15 lines
384 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;
|
|
if (b) {} // No error
|
|
b = new Object();
|
|
Expect.throwsTypeError(() {
|
|
if (b) {}
|
|
});
|
|
}
|