Skip to content

Commit 99a17e3

Browse files
authored
Merge pull request #68035 from hamishknight/add-test
[test] Add test case for #60808
2 parents df2e2ee + d2bf03e commit 99a17e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/Constraints/issue-60808.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %target-typecheck-verify-swift
2+
3+
// https://github.com/apple/swift/issues/60808
4+
5+
protocol T {}
6+
struct A: T {}
7+
8+
func test_switch<T>(arr: T) {
9+
if case _ as A = arr {}
10+
}

0 commit comments

Comments
 (0)