Skip to content

Commit 0d7101d

Browse files
author
John Messerly
authored
Update STATIC_SAFETY.md
improve optional flags documentation
1 parent a210c63 commit 0d7101d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/dev_compiler/doc/STATIC_SAFETY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,8 @@ dartanalyzer --strong --no-implicit-casts my_app.dart
458458
### Disable implicit dynamic (experimental)
459459
460460
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:
462463
463464
```dart
464465
main() {
@@ -499,8 +500,7 @@ class C extends Iterable { /* ... */ }
499500
class C extends Iterable<dynamic> { /* ... */ }
500501
```
501502

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.
504504

505505
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).
506506
Try it out in your project by editing .analysis_options:

0 commit comments

Comments
 (0)