[SR-2520] Type alias is lost when applying @escaping-ness #45125
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
Additional Detail from JIRA
md5: 696cc521de25a6df6bd6323fe4845bd0
relates to:
Issue Description:
When
applyNonEscapingFromContext()
is applied to a NameAliasType wrapping a FunctionType, the result is just a FunctionType, i.e. the NameAlias is lost. This means things like PrintAsObjC will not use the original name, but the raw function type.@slavapestov wrote this in a FIXME, but I wanted to track it here so I have something to link to.
The text was updated successfully, but these errors were encountered: