Commit Graph

2 Commits

Author SHA1 Message Date
Slava Pestov
290701cb4d Sema: Ban shadowing generic parameters from outer scopes
Code like that is usually indicative of programmer error, and does not
round-trip through module interface files since there is no source
syntax to refer to an outer generic parameter.

For source compatibility this is a warning, but becomes an error with
-swift-version 6.

Fixes rdar://problem/108385980 and https://github.com/apple/swift/issues/62767.
2023-04-25 17:41:23 -04:00
Anthony Latsis
d32facc2f4 Gardening: Migrate test suite to GH issues (file names): Constraints 2022-09-18 17:54:31 +03:00