mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
217 B
Swift
14 lines
217 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
|
|
|
// https://github.com/apple/swift/issues/47590
|
|
|
|
protocol A {
|
|
associatedtype B
|
|
}
|
|
|
|
extension A {
|
|
func foo() {
|
|
(B.self as! Sequence.Type).Element
|
|
}
|
|
}
|