Description
[Edit eernstg Oct 11 2018] The currently valid list of situations which were specified as errors and should now be warnings is the following:
import_duplicated_library_named
mismatched_getter_and_setter_types
mismatched_getter_and_setter_types_from_supertype
missing_enum_constant_in_switch
non_void_return_for_operator
non_void_return_for_setter
return_without_value
Below is the pre-edit text of this issue.
The following identifiers (present in the implementation of the analyzer) indicate 13 situations where Dart 2 still has warnings (contrary to commit a07b2a1 where all warnings were turned into errors, as had been the plan for a long time):
conflicting_dart_import
final_not_initialized
final_not_initialized_constructor (note that this prefix matches 3 codes)
import_duplicated_library_named
mismatched_getter_and_setter_types
mismatched_getter_and_setter_types_from_supertype
missing_enum_constant_in_switch
non_void_return_for_operator
non_void_return_for_setter
return_without_value
mixin_return_types
The language specification should be updated to make them warnings again, and the dynamic semantics specified (or we should confirm that the existing rules already cover these situations).
Alternatively, we could delete these errors from the language specification, and leave it to the linter to flag them, if desired. For that we'd obviously still need to ensure that the dynamic semantics is well-defined.