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

Unified Diff: pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart

Issue 2919623002: Implement type inference for PropertySet. (Closed)
Patch Set: Created 3 years, 7 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/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
index b520021cf1f1c18d48cd66f76ff76497a9d35ae0..814de30e495b29d91adcbbc9747c19e467e569c2 100644
--- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments_factory.dart
@@ -12,12 +12,12 @@ class C<T> {
factory C(T t) {
var /*@type=C<C::•::T>*/ x = new C<T>._();
- x.t = t;
+ x. /*@target=C::t*/ t = t;
return x;
}
}
main() {
var /*@type=C<int>*/ x = new /*@typeArgs=int*/ C(42);
- x.t = /*error:INVALID_ASSIGNMENT*/ 'hello';
+ x. /*@target=C::t*/ t = /*error:INVALID_ASSIGNMENT*/ 'hello';
}

Powered by Google App Engine
This is Rietveld 408576698