@@ -166,15 +166,24 @@ class _Proxy {
166
166
}
167
167
168
168
/**
169
+ * This annotation is deprecated and will be removed in Dart 2.
170
+ *
171
+ * Dart 2 has a more restrictive type system than Dart 1, and it requires
172
+ * method access to be either through a known interface or by using
173
+ * dynamic invocations. The original intent of `@proxy` (to implement a class
174
+ * that isn't known statically, as documented at the end of this text),
175
+ * is not supported by Dart 2.
176
+ * To continue to perform dynamic invocations on an object,
177
+ * it should be accessed through a reference of type `dynamic` .
178
+ *
169
179
* The annotation `@proxy` marks a class as implementing members dynamically
170
180
* through `noSuchMethod` .
171
181
*
172
182
* The annotation applies to any class. It is inherited by subclasses from both
173
183
* superclass and interfaces.
174
184
*
175
185
* If a class is annotated with `@proxy` , or it implements any class that is
176
- * annotated, then the class is considered to implement any member with regard
177
- * to static type analysis.
186
+ * annotated, then all member accesses are allowed on an object of that type.
178
187
* As such, it is not a static type warning to access any member of the object
179
188
* which is not implemented by the class, or to call a method with a different
180
189
* number of parameters than it is declared with.
0 commit comments