Skip to content

Commit 8ad16fb

Browse files
authored
Merge pull request #84451 from slavapestov/test-84419
Sema: Add test case for #84419
2 parents d505527 + 22234ef commit 8ad16fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Generics/issue-84419.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)