We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d505527 + 22234ef commit 8ad16fbCopy full SHA for 8ad16fb
test/Generics/issue-84419.swift
@@ -0,0 +1,7 @@
1
+// RUN: %target-typecheck-verify-swift -swift-version 6
2
+
3
+struct G<T: Sequence> where T == Int {
4
+// expected-error@-1 {{no type for 'T' can satisfy both 'T == Int' and 'T : Sequence'}}
5
+// expected-error@-2 {{same-type requirement makes generic parameter 'T' non-generic}}
6
+ let t: T
7
+}
0 commit comments