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
An assignment for an associated type sets a default, not a requirement. So in the second case, you're specifying that the property returns something with an associated type, and associated type inference will then use the concrete static type "UILabel" instead of the dynamic type "Self". The default is going to be ignored all the time.
P.S. In the future, please prefer pasting code inline instead of taking screenshots. That makes it easier to read on small devices or reproduce a problem locally, and if anyone is using text-to-speech they have a chance to read it!
Attachment: Download
Additional Detail from JIRA
md5: da3454fbed45603b85f17ae097f4c547
Issue Description:
Sorry for not finding a more suitable title, but it's a bit hard to describe 🙂
I'm wondering basically, why would the following code not work :
But this somehow does:
One of these seems to be a strange bug - but I'd love a clarification as I might totally be wrong here 🙂
Thanks.
The text was updated successfully, but these errors were encountered: