mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
262 B
Swift
15 lines
262 B
Swift
// RUN: not %target-swift-frontend -typecheck %s
|
||
|
||
struct MyStruct {}
|
||
protocol MyProtocol {}
|
||
|
||
func foo(bytes: [MyStruct]) {
|
||
bytes.withUnsafeBufferPointer { a in
|
||
extension MyProtocol {
|
||
var bytes: MyStruct {
|
||
fatalError()
|
||
}
|
||
}
|
||
}
|
||
}
|