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

Unified Diff: tests/language/type_variable_field_initializer2_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
Index: tests/language/type_variable_field_initializer2_test.dart
diff --git a/tests/language/type_variable_field_initializer_test.dart b/tests/language/type_variable_field_initializer2_test.dart
similarity index 63%
copy from tests/language/type_variable_field_initializer_test.dart
copy to tests/language/type_variable_field_initializer2_test.dart
index cc0ba50f2daa8520ed7fa0f4ec5c253294f4b21d..098d9e38ee9350a62bc30c4992058d427eecf16b 100644
--- a/tests/language/type_variable_field_initializer_test.dart
+++ b/tests/language/type_variable_field_initializer2_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_closure4_test.dart ('k') | tests/language/type_variable_field_initializer_closure2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698