Sugared Optional<()>
return types (e.g. Void?) are caught by the redundant_void_return
rule.
#1761
Labels
bug
Unexpected and reproducible misbehavior.
foo() -> ()
andfoo() -> ()?
are not the same type. The later is currently rejected byredundant_void_return
as being equivalent to the former.The text was updated successfully, but these errors were encountered: