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

Unified Diff: pkg/analyzer/test/src/task/strong/checker_test.dart

Issue 2212233003: fix #26393, treat tear offs as definite functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove comment 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/src/task/strong/checker_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart
index f7ce4b20f518dcefde77a55728b50f58ddc6dfe7..e7834b57bc938aebb531a454109cef48ec769418 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -1406,23 +1406,23 @@ void main() {
}
{
Function2<B, B> f;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.top;
+ f = /*error:STATIC_TYPE_ERROR*/c.top;
Leaf 2016/08/05 23:33:05 This doesn't feel right. I think this is the "stu
f = c.left;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.right;
+ f = /*error:STATIC_TYPE_ERROR*/c.right;
f = c.bot;
}
{
Function2<A, A> f;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.top;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.left;
+ f = /*error:STATIC_TYPE_ERROR*/c.top;
+ f = /*error:STATIC_TYPE_ERROR*/c.left;
f = c.right;
f = c.bot;
}
{
Function2<A, B> f;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.top;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.left;
- f = /*warning:DOWN_CAST_COMPOSITE*/c.right;
+ f = /*error:STATIC_TYPE_ERROR*/c.top;
+ f = /*error:STATIC_TYPE_ERROR*/c.left;
+ f = /*error:STATIC_TYPE_ERROR*/c.right;
f = c.bot;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/checker.dart ('k') | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698