mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
23 lines
329 B
Swift
23 lines
329 B
Swift
import Foundation
|
|
|
|
@objc
|
|
protocol SomeProto {
|
|
func conform()
|
|
}
|
|
|
|
class AnotherClass {}
|
|
|
|
class SomeClass {
|
|
// Intentionally referencing the wrong class name.
|
|
var x : AnotherClass2? = nil
|
|
}
|
|
|
|
protocol P {}
|
|
protocol WithAssoc {
|
|
associatedtype AssocType : P
|
|
}
|
|
|
|
struct BuggyConformer : WithAssoc {
|
|
typealias AssocType = Int
|
|
}
|