Skip to content

Commit d2bf03e

Browse files
committed
[test] Add test case for issue 60808
1 parent df2e2ee commit d2bf03e

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)