mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Add test case for issue 60808
This commit is contained in:
10
test/Constraints/issue-60808.swift
Normal file
10
test/Constraints/issue-60808.swift
Normal file
@@ -0,0 +1,10 @@
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
|
||||
// https://github.com/apple/swift/issues/60808
|
||||
|
||||
protocol T {}
|
||||
struct A: T {}
|
||||
|
||||
func test_switch<T>(arr: T) {
|
||||
if case _ as A = arr {}
|
||||
}
|
||||
Reference in New Issue
Block a user