This was probably fixed by https://github.com/swiftlang/swift/pull/83070.
This commit is contained in:
Slava Pestov
2025-09-22 19:23:00 -04:00
parent b250ef7be3
commit 22234ef22f

View File

@@ -0,0 +1,7 @@
// RUN: %target-typecheck-verify-swift -swift-version 6
struct G<T: Sequence> where T == Int {
// expected-error@-1 {{no type for 'T' can satisfy both 'T == Int' and 'T : Sequence'}}
// expected-error@-2 {{same-type requirement makes generic parameter 'T' non-generic}}
let t: T
}