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
The problem in this code is that method strange introduces a second generic type variable named T. The error message referes to two different type variables, but this is not apparent. It would be more robust if swiftc either warns if type variables are overwritten or to forbid (in a future revision of the language) to overwrite type variables.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: de650db9b70e1da7de898bbd35a07b8a
duplicates:
Issue Description:
The problem in this code is that method
strange
introduces a second generic type variable namedT
. The error message referes to two different type variables, but this is not apparent. It would be more robust ifswiftc
either warns if type variables are overwritten or to forbid (in a future revision of the language) to overwrite type variables.The text was updated successfully, but these errors were encountered: