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

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

Issue 2664643002: fix #28519, assertion incorrectly triggering (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c38122e49c95991020fcfa4faf661ca55a0509c6..73fc16c5d48b058ac12fa345a192ac27da6a7e59 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -2424,6 +2424,21 @@ var fe1 = (int x) => x;
check(implicitDynamic: false);
}
+ void test_implicitDynamic_static() {
+ addFile(r'''
+class C {
+ static void test(int body()) {}
+}
+
+void main() {
+ C.test(/*info:INFERRED_TYPE_CLOSURE*/() {
+ return 42;
+ });
+}
+''');
+ check(implicitDynamic: false);
+ }
+
void test_implicitDynamic_type() {
addFile(r'''
class C<T> {}
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698