I created a simple test project, and found that it didn't fail. Then I
looked at my original test again and realized it was actually failing for
other reasons. So never mind :)

On Tue, Dec 6, 2016 at 1:55 PM, Joe Groff <jgr...@apple.com> wrote:

>
> On Dec 6, 2016, at 12:53 PM, David Catmull <davidcatm...@gmail.com> wrote:
>
> I tried, writing that as @objc(action:) #selector(ClassName.action(_:))
> but that got an "expected declaration" error.
>
> I also tried adding @objc(action:) to the method itself (which seems
> redundant anyway), but that didn't help either.
>
>
> The attribute has to go on the method definition. Would you be able to
> file a bug on bugs.swift.org with your Swift and ObjC code?
>
> -Joe
>
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to