Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: tests/language/deferred_function_type_lib.dart

Issue 1071133002: dart2js: create a 'types' table for each deferred unit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased and updated comment. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/deferred_function_type_lib.dart
diff --git a/tests/compiler/dart2js_extra/22487_test.dart b/tests/language/deferred_function_type_lib.dart
similarity index 65%
copy from tests/compiler/dart2js_extra/22487_test.dart
copy to tests/language/deferred_function_type_lib.dart
index 4bf5426b20e4dc4508044fb5aa0884afe5082e4a..1f0e610aac59572ef332c77ebb2d2acdac5ab189 100644
--- a/tests/compiler/dart2js_extra/22487_test.dart
+++ b/tests/language/deferred_function_type_lib.dart
@@ -2,12 +2,19 @@
// 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.
-// Regression test for http://dartbug.com/22487
-
import 'package:expect/expect.dart';
-divIsInt(a, b) => (a / b) is int;
+class T {
+ A foo(int x) {}
+}
+
+class A{}
+
+typedef A F(int x);
+
+use(x) => x;
-main() {
- Expect.isFalse((divIsInt)(10, 3));
+runTest() {
+ use(new A());
+ Expect.isTrue(new T().foo is F);
}
« no previous file with comments | « tests/compiler/dart2js/type_representation_test.dart ('k') | tests/language/deferred_function_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698