[SR-15202] [5.5] Typealias in generic constraint is wrongly ASTPrinted as underlying type #57524
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Xcode 13.0 RC 13A233 / macOS 12.0 Beta (21A5506j)
swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
md5: 3654dbe11933765a9c76b48a06366376
Issue Description:
Bad behavior is new in Swift 5.5.
Running
S
through ASTPrinter even without settingPrintTypeAliasUnderlyingType
gives:This seems to happen only in generic constraints,
class Der : Alias {
} works fine.This means SourceKit clients get the 'wrong', ie. not what the user wrote, info in
key.fully_annotated_decl
,key.doc.full_as_xml
etc. Module interface as well.It's wrong in SymbolGraph too which affects DocC:
Xcode 13 / Swift 5.5
Xcode 12 / Swift 5.4
I had a quick look through the change history for ASTPrinter, my very wild shot in the dark is maybe fallout from PR 36784 - @ahoppen could you take a quick look when you have a chance?
The text was updated successfully, but these errors were encountered: