You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty sure we've never supported this, just in the parser. It's a reasonable enhancement to the feature, although honestly I'm still unhappy with having this feature at all rather than something like @qualified import.
Is there that big of a distinction between functions and operators that `import func Module.functionName` would be supported, but not importing an operator?
No, no reason. There's a difference between operator functions and the operator decls themselves, but (IIRC) the operator decls currently leak in no matter what you do. This would only apply to the functions and so would behave pretty much exactly like the normal function case. We just don't even attempt to parse an operator following the dot.
@belkadan the fact that operators disregard importing rules and leaks is really frustrating. I was not able to find a way to import just a function from a library and do not import operators. Is it subject to change in Swift 3?
Additional Detail from JIRA
md5: 27e10ef68b7c68f6c948acacbf246aa2
relates to:
Issue Description:
When I try to do a qualified import of a function that happens to be an operator, e.g.
I get the following error:
This still works for non-operator, free functions:
Is this supposed to be supported in Swift 2.2?
The text was updated successfully, but these errors were encountered: