Skip to content

Commit

Permalink
[ClangImporter] Use existential Any instead of the constraint when …
Browse files Browse the repository at this point in the history
…importing

dependent member types.
  • Loading branch information
hborla committed Jun 18, 2022
1 parent ac36e2b commit 1ac5c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ClangImporter/ImportType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ namespace {

// TODO: Add support for dependent types (SR-13809).
#define DEPENDENT_TYPE(Class, Base) \
ImportResult Visit##Class##Type(const clang::Class##Type *) { return Impl.SwiftContext.TheAnyType; }
ImportResult Visit##Class##Type(const clang::Class##Type *) { return Impl.SwiftContext.getAnyExistentialType(); }
#define TYPE(Class, Base)
#include "clang/AST/TypeNodes.inc"

Expand Down

0 comments on commit 1ac5c39

Please sign in to comment.