[test] Add test case for issue 60808

This commit is contained in:
Hamish Knight
2023-08-21 11:59:51 +01:00
parent df2e2eee30
commit d2bf03e697

View 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 {}
}