mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
23cba1d438
If an implicitly typed top level variable or field depends on an implicitly typed instance getter or instance field, the analyzer implementation of type inference isn't guaranteed to infer the depended-upon field first, therefore the type might be inferred incorrectly. The new front end doesn't have this problem, so the user's code will execute correctly at runtime, but they might get confusing results from the analyzer. To alert users of this problem, we issue a compile-time warning whenever an implicitly typed top level variable or field depends on an implicitly typed instance getter or instance field. Change-Id: I100bcbe1a76472bcb7d493eb12e4a3e2d0605e79 Reviewed-on: https://dart-review.googlesource.com/35385 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com> |
||
---|---|---|
.. | ||
analysis_server | ||
analysis_server_client | ||
analyzer | ||
analyzer_cli | ||
analyzer_plugin | ||
async_helper | ||
browser | ||
compiler | ||
dart_internal | ||
dart_messages | ||
dev_compiler | ||
expect | ||
front_end | ||
js | ||
js_ast | ||
kernel | ||
meta | ||
microlytics | ||
sourcemap_testing | ||
status_file | ||
telemetry | ||
testing | ||
typed_mock | ||
vm | ||
.gitignore | ||
BUILD.gn | ||
pkg.status |