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

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

Issue 1425593006: Record defensive dynamic invokes for unresolved field accesses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/task/strong/checker.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 aa51b50a97a96e36d128714316ba4606e63ea02b..b11e7926d6e15e1bf6777a36e8f932b08b6b6328 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -125,6 +125,18 @@ void main() {
y = /*info:DynamicCast, info:DynamicInvoke*/f(3);
(/*info:DynamicInvoke*/f(3.0));
}
+ {
+ dynamic g = new B();
+ (/*info:DynamicInvoke*/g.call(32.0));
+ (/*info:DynamicInvoke*/g.col(42.0));
+ (/*info:DynamicInvoke*/g.foo(42.0));
+ (/*info:DynamicInvoke*/g.x);
+ A f = new B();
+ f.call(32.0);
+ (/*info:DynamicInvoke*/f.col(42.0));
+ (/*info:DynamicInvoke*/f.foo(42.0));
+ (/*info:DynamicInvoke*/f.x);
+ }
}
'''
});
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/checker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698