[SR-12162] Typealias cannot declare function type that returns "some" #54587
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Playground on iPadOS 13.3
Additional Detail from JIRA
md5: 4b6ae1c29a0ad5f770b7d863cffdaf7a
Issue Description:
❌ Bug: a typealias cannot alias a function type that returns "some", but it should be able to because "some" can be used in return types of functions. 👎
✔ Fix by making typealias able to alias function types with "some" return type. 👍
⚑ See attached screenshot. ❗
The text was updated successfully, but these errors were encountered: