You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an optional feature of analyzer, intended primarily for use with strong mode's inference.
461
-
It rejects implicit use of `dynamic`, requiring it to be written explicitly. For example:
461
+
It rejects implicit uses of `dynamic` that strong mode inference fails to fill in with a concrete type,
462
+
ensuring that all types are either successfully inferred or explicitly written. For example:
462
463
463
464
```dart
464
465
main() {
@@ -499,8 +500,7 @@ class C extends Iterable { /* ... */ }
499
500
class C extends Iterable<dynamic> { /* ... */ }
500
501
```
501
502
502
-
It is designed to prevent accidental use of `dynamic` in code that does not intend to use it. It will lead to
503
-
more verbose dynamic code, so it may not be advisable for your code depending on its goals.
503
+
This feature is to prevent accidental use of `dynamic` in code that does not intend to use it.
504
504
505
505
This option is experimental and may be changed or removed in the future. Feedback is appreciated! Contact us at our [mailing list](https://groups.google.com/a/dartlang.org/forum/#!forum/dev-compiler).
506
506
Try it out in your project by editing .analysis_options:
0 commit comments