mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
These also create a dependency on the implementation module, even if both the type and the protocol are public. As John puts it, a conformance is basically a declaration that we name as part of another declaration. More rdar://problem/48991061
22 lines
453 B
Swift
22 lines
453 B
Swift
import NormalLibrary
|
|
|
|
extension NormalStruct: NormalProto {
|
|
public typealias Assoc = Int
|
|
}
|
|
extension GenericStruct: NormalProto {
|
|
public typealias Assoc = Int
|
|
}
|
|
extension NormalClass: NormalProto {
|
|
public typealias Assoc = Int
|
|
}
|
|
|
|
public struct BadStruct {}
|
|
public protocol BadProto {}
|
|
open class BadClass {}
|
|
|
|
public struct IntLike: ExpressibleByIntegerLiteral, Equatable {
|
|
public init(integerLiteral: Int) {}
|
|
}
|
|
|
|
precedencegroup BadPrecedence {}
|