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

Unified Diff: tests/language/src/TypeVariableBounds2Test.dart

Issue 9615035: Generate dynamic type errors according to spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/src/Prefix23Test.dart ('k') | tests/language/src/TypeVariableBoundsTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/TypeVariableBounds2Test.dart
===================================================================
--- tests/language/src/TypeVariableBounds2Test.dart (revision 5063)
+++ tests/language/src/TypeVariableBounds2Test.dart (working copy)
@@ -28,7 +28,10 @@
Expect.isTrue(a is J); /// 04: static type error
// In both production and checked modes, A<String> is not a subtype of K.
- Expect.isTrue(a is !K); /// 05: static type error
+ // However, while unsuccessfully trying to prove that A<String> is a K,
+ // a malformed type is encountered in checked mode, resulting in a dynamic
+ // type error.
+ Expect.isTrue(a is !K); /// 05: dynamic type error
}
a = new A<int>();
« no previous file with comments | « tests/language/src/Prefix23Test.dart ('k') | tests/language/src/TypeVariableBoundsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698