| Index: test/codegen/corelib/double_truncate2_test.dart
|
| diff --git a/test/codegen/language/call_property_test.dart b/test/codegen/corelib/double_truncate2_test.dart
|
| similarity index 50%
|
| copy from test/codegen/language/call_property_test.dart
|
| copy to test/codegen/corelib/double_truncate2_test.dart
|
| index fbab14684ec543e9f18b68191b9b4f6e171d8d30..675980afe2281e7a45ce130740b3f6f208ac15ef 100644
|
| --- a/test/codegen/language/call_property_test.dart
|
| +++ b/test/codegen/corelib/double_truncate2_test.dart
|
| @@ -2,18 +2,11 @@
|
| // 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.
|
|
|
| -// Test that a class with a [call] property does not implement [Function] or
|
| -// a typedef of function type.
|
| -
|
| import 'package:expect/expect.dart';
|
|
|
| -class Call {
|
| - int get call => 0;
|
| -}
|
| -
|
| -typedef void F();
|
| -
|
| main() {
|
| - Expect.isFalse(new Call() is Function);
|
| - Expect.isFalse(new Call() is F);
|
| -}
|
| + Expect.throws(() => double.INFINITY.truncate(), (e) => e is UnsupportedError);
|
| + Expect.throws(() => double.NEGATIVE_INFINITY.truncate(),
|
| + (e) => e is UnsupportedError);
|
| + Expect.throws(() => double.NAN.truncate(), (e) => e is UnsupportedError);
|
| +}
|
|
|