mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Add test case for https://github.com/swiftlang/swift/issues/84419
This was probably fixed by https://github.com/swiftlang/swift/pull/83070.
This commit is contained in:
7
test/Generics/issue-84419.swift
Normal file
7
test/Generics/issue-84419.swift
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user