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

Unified Diff: pkg/analyzer/test/generated/strong_mode_test.dart

Issue 2208953002: fix #25944, improve Future.then inference (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cleanup unused code Created 4 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
Index: pkg/analyzer/test/generated/strong_mode_test.dart
diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
index 75f4ea97f808527b2b86d832394b195d056a5707..8a08c5329ed6910faa508fecf9141211cc2afc93 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -121,9 +121,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("f2", _isFutureOfDynamic);
check("f3", _isFutureOfInt);
- // This should be int when we handle the implicit Future<T> | T union
- // https://github.com/dart-lang/sdk/issues/25322
- check("f4", _isFutureOfDynamic);
+ check("f4", _isFutureOfInt);
check("f5", _isFutureOfInt);
check("g0", _isFutureOfDynamic);
@@ -131,9 +129,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("g2", _isFutureOfDynamic);
check("g3", _isFutureOfInt);
- // This should be int when we handle the implicit Future<T> | T union
- // https://github.com/dart-lang/sdk/issues/25322
- check("g4", _isFutureOfDynamic);
+ check("g4", _isFutureOfInt);
check("g5", _isFutureOfInt);
}
@@ -181,9 +177,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("f2", _isFutureOfDynamic);
check("f3", _isFutureOfInt);
- // This should be int when we handle the implicit Future<T> | T union
- // https://github.com/dart-lang/sdk/issues/25322
- check("f4", _isFutureOfDynamic);
+ check("f4", _isFutureOfInt);
check("f5", _isFutureOfInt);
check("g0", _isFutureOfDynamic);
@@ -191,9 +185,7 @@ class StrongModeDownwardsInferenceTest extends ResolverTestCase {
check("g2", _isFutureOfDynamic);
check("g3", _isFutureOfInt);
- // This should be int when we handle the implicit Future<T> | T union
- // https://github.com/dart-lang/sdk/issues/25322
- check("g4", _isFutureOfDynamic);
+ check("g4", _isFutureOfInt);
check("g5", _isFutureOfInt);
}

Powered by Google App Engine
This is Rietveld 408576698