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

Unified Diff: pkg/expect/lib/expect.dart

Issue 2973933002: Changed expect.dart typeAssertionsEnabled to pass strong mode tests. (Closed)
Patch Set: Created 3 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/expect/lib/expect.dart
diff --git a/pkg/expect/lib/expect.dart b/pkg/expect/lib/expect.dart
index 22449c12d4b2bd97f6fca16912d30f12fde2d3db..4d9c425275ad6c253b9ac5ac74320e05a505983f 100644
--- a/pkg/expect/lib/expect.dart
+++ b/pkg/expect/lib/expect.dart
@@ -507,7 +507,7 @@ class AssumeDynamic {
/// Is true iff type assertions are enabled.
final bool typeAssertionsEnabled = (() {
try {
- var i = 42;
+ dynamic i = 42;
String s = i;
} on TypeError catch (e) {
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698