Closed mayoff closed 3 years ago
Swift can promoted a function taking an Optional argument to a function taking a non-Optional argument. For example, it can promote Result<String?, Error>.success from (String?) -> Result<String?, Error> to (String) -> Result<String?, Error>.
Result<String?, Error>.success
(String?) -> Result<String?, Error>
(String) -> Result<String?, Error>
This commit handles that scenario properly.
Fixes #42.
Swift can promoted a function taking an Optional argument to a function taking a non-Optional argument. For example, it can promote
Result<String?, Error>.success
from(String?) -> Result<String?, Error>
to(String) -> Result<String?, Error>
.This commit handles that scenario properly.
Fixes #42.