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
I agree we should revisit this. I'm in favor of allowing both to compile, but in the meantime, you can define Nongeneric inside a constrained extension of Outer instead.
Environment
Xcode 10.1
Apple Swift version 4.2.1 (swiftlang-100.11.42 clang-1000.11.45.1)
Additional Detail from JIRA
md5: 7b4c5a4e94c7c3bf6e58535d54334a90
Issue Description:
Should the “Nongeneric” inner class compile?
The “Generic” inner class compiles, but the “Nongeneric” inner class fails to compile with the error:
‘where’ clause cannot be attached to a non-generic declaration
The text was updated successfully, but these errors were encountered: