mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
176 B
Swift
11 lines
176 B
Swift
// 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 {}
|
|
}
|