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

Unified Diff: tests/language/conflicting_type_variable_and_setter_test.dart

Issue 1595103003: Introduce language test for bug #25525 (Closed) Base URL: git@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 | « no previous file | tests/language/language_analyzer2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/conflicting_type_variable_and_setter_test.dart
diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/conflicting_type_variable_and_setter_test.dart
similarity index 62%
copy from tests/language/type_variable_closure3_test.dart
copy to tests/language/conflicting_type_variable_and_setter_test.dart
index ecb1c39e82ed81cc01dd061dca2b5070890f985b..2aca0c32b659b1f1f213c4744ab50c6753befbbc 100644
--- a/tests/language/type_variable_closure3_test.dart
+++ b/tests/language/conflicting_type_variable_and_setter_test.dart
@@ -4,15 +4,16 @@
import "package:expect/expect.dart";
-class A<T> {}
-
-class C<T> {
- a() {
- return () => new A<T>();
+class C<D> {
+ void set D(int value) {
+ field = value;
}
+
+ int field;
}
main() {
- Expect.isTrue(new C<int>().a()() is A<int>);
- Expect.isFalse(new C<int>().a()() is A<String>);
+ C<int> c = new C<int>();
+ c.D = 1;
+ Expect.equals(c.field, 1);
}
« no previous file with comments | « no previous file | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698