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

Unified Diff: tests/language/type_variable_field_initializer_closure2_test.dart

Issue 1575273002: Triage a few cps-ir failures (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « tests/language/type_variable_field_initializer2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_variable_field_initializer_closure2_test.dart
diff --git a/tests/language/type_variable_field_initializer_closure_test.dart b/tests/language/type_variable_field_initializer_closure2_test.dart
similarity index 62%
copy from tests/language/type_variable_field_initializer_closure_test.dart
copy to tests/language/type_variable_field_initializer_closure2_test.dart
index a3e3e475be7925fba9d67dfd54134a391144fc33..eaefd18980bcbae9410b99b1c965378c380f2eb0 100644
--- a/tests/language/type_variable_field_initializer_closure_test.dart
+++ b/tests/language/type_variable_field_initializer_closure2_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2016, 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.
@@ -8,13 +8,15 @@
import "package:expect/expect.dart";
class A<T> {
- var c = (() => new List<T>())();
+ var c = (() => new X<T>())();
}
class B<T> extends A<T> {
}
+class X<T> {}
+
main() {
- Expect.isTrue(new B<int>().c is List<int>);
- Expect.isFalse(new B<String>().c is List<int>);
+ Expect.isTrue(new B<int>().c is X<int>);
+ Expect.isFalse(new B<String>().c is X<int>);
}
« no previous file with comments | « tests/language/type_variable_field_initializer2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698