Closed
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
ClassName
with a constructor with default values, such asString name = ""
. - Call
ClassName.new
somewhere. - Call the
Add type annotation
quickfix - 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.