[SR-1019] Can't use the new #selector syntax for generic types #43631
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
Environment
xcode 7.3
Swift 2.2
Additional Detail from JIRA
md5: 5685a8e13e6f20612a2c6754c850cfe2
Issue Description:
I have an example here: https://gist.github.com/JamieWhite/72e0f7406a33d8e52657/51032655f639d9f92042ed7c02d0ee6c9e22790f
You'll notice this:
ActionTrampoline is generic type. How this should work is doing this:
How I worked around this was typeAliasing ActionTrampoline<self> and using that in the #selector like this:
https://gist.github.com/JamieWhite/72e0f7406a33d8e52657/fb010c8c0403725e431880b9dc6253dafc0c3b35
The text was updated successfully, but these errors were encountered: