Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14837] [C++] Allow swift users to override defaulted template type params. #57184

Open
zoecarver opened this issue Jun 27, 2021 · 1 comment
Labels
c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself new feature

Comments

@zoecarver
Copy link
Collaborator

Previous ID SR-14837
Radar rdar://problem/83367275
Original Reporter @zoecarver
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, CxxInterop
Assignee None
Priority Medium

md5: c7f09b73b075f64b467964c3fa055cbe

Issue Description:

Currently, if a template type parameter is defaulted and not used in the function's signature, we'll simply remove the template type param and use the defaulted type.

In the future, when we add support for all templates with template type params that are not used in a function's signature, we should also allow users to override the default type, if the template param type is defaulted.

This probably means importing two overloads of these types of function templates.

@zoecarver
Copy link
Collaborator Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@zoecarver zoecarver added c++ interop Feature: Interoperability with C++ and removed CxxInterop labels Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself new feature
Projects
None yet
Development

No branches or pull requests

1 participant