Commit Graph

2 Commits

Author SHA1 Message Date
Pavel Yaskevich
add41afc47 [AST] Teach computeNominalType about nested ObjC protocols
Objective-C protocols unlike their Swift counterparts could be
nested in other types, so `computeNominalType` has to fetch a
parent for such protocols (if any) just like importer does.

Resolves: rdar://95084142
2022-06-28 12:06:26 -07:00
Robert Widmann
a72c5faac7 [ClangImporter] Commit a regression test for protocols via nested names
It's a terrible idea to support this in the long run, but in the short
term we should at least know what the compiler does in these situations.

Relates to rdar://59431058
2020-02-13 16:41:10 -08:00