mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
quick fix for FINAL_MIXIN_CLASS
Change-Id: Ief41674c064116a6152f413bf42a2d23b404eda2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369504 Auto-Submit: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
feea19e376
commit
a35de7937c
|
@ -45,8 +45,8 @@
|
|||
#
|
||||
# Stats:
|
||||
# - 42 "needsEvaluation"
|
||||
# - 348 "needsFix"
|
||||
# - 403 "hasFix"
|
||||
# - 347 "needsFix"
|
||||
# - 404 "hasFix"
|
||||
# - 516 "noFix"
|
||||
|
||||
AnalysisOptionsErrorCode.INCLUDED_FILE_PARSE_ERROR:
|
||||
|
@ -2869,9 +2869,7 @@ ParserErrorCode.FINAL_METHOD:
|
|||
ParserErrorCode.FINAL_MIXIN:
|
||||
status: hasFix
|
||||
ParserErrorCode.FINAL_MIXIN_CLASS:
|
||||
status: needsFix
|
||||
notes: |-
|
||||
Remove the `final` keyword.
|
||||
status: hasFix
|
||||
ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR:
|
||||
status: noFix
|
||||
ParserErrorCode.GETTER_CONSTRUCTOR:
|
||||
|
|
|
@ -1391,6 +1391,9 @@ final _builtInNonLintProducers = <ErrorCode, List<ProducerGenerator>>{
|
|||
ParserErrorCode.FINAL_MIXIN: [
|
||||
RemoveExtraModifier.new,
|
||||
],
|
||||
ParserErrorCode.FINAL_MIXIN_CLASS: [
|
||||
RemoveExtraModifier.new,
|
||||
],
|
||||
ParserErrorCode.GETTER_WITH_PARAMETERS: [
|
||||
RemoveParametersInGetterDeclaration.new,
|
||||
],
|
||||
|
|
|
@ -217,6 +217,15 @@ mixin M {}
|
|||
''');
|
||||
}
|
||||
|
||||
Future<void> test_finalMixinClass() async {
|
||||
await resolveTestCode('''
|
||||
final mixin class A {}
|
||||
''');
|
||||
await assertHasFix('''
|
||||
mixin class A {}
|
||||
''');
|
||||
}
|
||||
|
||||
Future<void> test_interfaceMixin() async {
|
||||
await resolveTestCode('''
|
||||
interface mixin M {}
|
||||
|
|
Loading…
Reference in a new issue