File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
test/Interop/Cxx/templates Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1354,6 +1354,11 @@ shouldOpenExistentialCallArgument(
1354
1354
break;
1355
1355
}
1356
1356
1357
+ // C++ function templates require specialization, which is not possible with
1358
+ // opened existential archetypes, so do not open.
1359
+ if (isa_and_nonnull<clang::FunctionTemplateDecl>(callee->getClangDecl()))
1360
+ return None;
1361
+
1357
1362
ASTContext &ctx = callee->getASTContext();
1358
1363
if (!ctx.LangOpts.EnableOpenedExistentialTypes)
1359
1364
return None;
Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-cxx-interop)
2
+ // RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-cxx-interop -Xfrontend -enable-experimental-opened-existential-types)
2
3
//
3
4
// REQUIRES: executable_test
4
5
You can’t perform that action at this time.
0 commit comments