mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
Skip selector-gen for templates
This commit is contained in:
parent
5df19d9231
commit
8a7108f8c9
2 changed files with 5 additions and 1 deletions
|
@ -594,6 +594,10 @@ extern(C++) private final class Supported : Objc
|
|||
return 0;
|
||||
});
|
||||
|
||||
// Avoid attempting to generate selectors for template instances.
|
||||
if (fd.parent && fd.parent.isTemplateInstance())
|
||||
return;
|
||||
|
||||
// No selector declared, generate one.
|
||||
if (fd._linkage == LINK.objc && !fd.objc.selector)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue