dart-sdk/pkg
Paul Berry 23cba1d438 Issue a warning if top-level inference depends on an implicitly typed instance getter.
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>
2018-01-17 21:58:28 +00:00
..
analysis_server Update code completion to suggest covariant 2018-01-17 03:30:23 +00:00
analysis_server_client Test failing fix. Stdin is mocked to avoid the typing issue; not critical for this unit test. 2017-08-08 19:00:37 -07:00
analyzer Issue a warning if top-level inference depends on an implicitly typed instance getter. 2018-01-17 21:58:28 +00:00
analyzer_cli Create the new flag --use-cfe in the analyzer, analysis server and analyzer_cli and migrate the old behavior of --preview-dart-2 to --use-cfe. The --preview-dart-2 flag is now a no-op, with functionality coming soon. 2018-01-08 22:37:05 +00:00
analyzer_plugin Code complete identifiers not directly referenced by the analyzer AST 2017-12-22 21:55:35 +00:00
async_helper Update language_2/await_test.dart to use async_helper. 2017-12-06 12:05:59 +00:00
browser
compiler Update fasta parser to report ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR 2018-01-17 18:28:48 +00:00
dart_internal Disable analyzer warning on special 'dart:_internal' import. 2017-12-21 23:21:04 +00:00
dart_messages Improve extraneous or out of position modifier recovery 2018-01-16 17:24:12 +00:00
dev_compiler Fix typed JS interop in DDK 2018-01-17 21:46:48 +00:00
expect Add Expect.notIdentical and Expect.allDistinct to package:expect. 2018-01-12 09:33:16 +00:00
front_end Update fasta parser to report ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR 2018-01-17 18:28:48 +00:00
js Making license files consistent across all packages 2017-09-28 19:33:08 +00:00
js_ast Fix printer_callback_test 2017-12-21 14:30:49 +00:00
kernel Deprecate IncrementalClassHierarchy 2018-01-17 13:30:17 +00:00
meta Add a README file to the meta package 2017-12-17 21:53:17 +00:00
microlytics
sourcemap_testing Add source information to parameter stubs. 2018-01-12 21:23:40 +00:00
status_file There is no longer a safarimobilesim test runtime. 2018-01-17 13:13:17 +00:00
telemetry Remove Fuchsia-specific build files. 2017-10-19 17:52:37 +00:00
testing Convert Platform.resolvedExecutable to URI correctly 2018-01-16 14:24:52 +00:00
typed_mock Remove Fuchsia-specific build files. 2017-10-19 17:52:37 +00:00
vm Deprecate IncrementalClassHierarchy 2018-01-17 13:30:17 +00:00
.gitignore
BUILD.gn
pkg.status Fix typo in status file 2018-01-17 18:44:12 +00:00