-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
Describe the bug
The Add type annotation produces the wrong code for type Function with default values.
To Reproduce
Steps to reproduce the behavior:
- Create a class
ClassNamewith a constructor with default values, such asString name = "". - Call
ClassName.newsomewhere. - Call the
Add type annotationquickfix - The type will be
ClassName Function(String name = ""), which is marked with the default_value_in_function_type error.
Expected behavior
The type should drop the default values.
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available