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

Unified Diff: tests/language_2/typevariable_substitution2_test.dart

Issue 3001113002: Fix typevariable_substitution2_test (Closed)
Patch Set: Created 3 years, 4 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_2/language_2_vm.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/typevariable_substitution2_test.dart
diff --git a/tests/language_2/typevariable_substitution2_test.dart b/tests/language_2/typevariable_substitution2_test.dart
index fb33977303b7722c4d3f2a7faaaab33fbd844433..344db7100c4cf21e8ebfca6034cb86a999b3ec5a 100644
--- a/tests/language_2/typevariable_substitution2_test.dart
+++ b/tests/language_2/typevariable_substitution2_test.dart
@@ -21,5 +21,6 @@ class C<T> = B<T> with M;
main() {
new A(null);
new C<String>(''); //# 01: ok
- checkDynamicTypeError(() => new C<String>(0)); //# 02: compile-time error
+ dynamic value = 0; //# 02: ok
+ checkDynamicTypeError(() => new C<String>(value)); //# 02: continued
}
« no previous file with comments | « tests/language_2/language_2_vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698