Index: tests/lib/developer/inspect_test.dart |
diff --git a/tests/language/deferred_function_type_lib.dart b/tests/lib/developer/inspect_test.dart |
similarity index 57% |
copy from tests/language/deferred_function_type_lib.dart |
copy to tests/lib/developer/inspect_test.dart |
index 1f0e610aac59572ef332c77ebb2d2acdac5ab189..9f06215011743783bfcb89694f921e47cc9ca7a7 100644 |
--- a/tests/language/deferred_function_type_lib.dart |
+++ b/tests/lib/developer/inspect_test.dart |
@@ -2,19 +2,16 @@ |
// 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 'dart:developer'; |
import 'package:expect/expect.dart'; |
-class T { |
- A foo(int x) {} |
+class Point { |
+ int x, y; |
+ Point(this.x, this.y); |
} |
-class A{} |
- |
-typedef A F(int x); |
- |
-use(x) => x; |
- |
-runTest() { |
- use(new A()); |
- Expect.isTrue(new T().foo is F); |
+void main() { |
+ var p_in = new Point(3, 4); |
+ var p_out = inspect(p_in); |
+ Expect.isTrue(identical(p_in, p_out)); |
} |