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