Index: test/codegen/corelib/double_round2_test.dart |
diff --git a/test/codegen/language/call_property_test.dart b/test/codegen/corelib/double_round2_test.dart |
similarity index 51% |
copy from test/codegen/language/call_property_test.dart |
copy to test/codegen/corelib/double_round2_test.dart |
index fbab14684ec543e9f18b68191b9b4f6e171d8d30..2135191be5bcff4f34665d8866b68536ccd39651 100644 |
--- a/test/codegen/language/call_property_test.dart |
+++ b/test/codegen/corelib/double_round2_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.round(), (e) => e is UnsupportedError); |
+ Expect.throws(() => double.NEGATIVE_INFINITY.round(), |
+ (e) => e is UnsupportedError); |
+ Expect.throws(() => double.NAN.round(), (e) => e is UnsupportedError); |
+} |