Files
swift-mirror/test/SourceKit/DocSupport/Inputs/cake1.swift
Xi Ge 9f39c8494d [SourceKitd] Avoid printing parent type directly on extended type. rdar:37965902 (#14892)
When printing parent type directly, we may print generic arguments and sugared
dictionary type.
2018-03-01 09:19:44 -08:00

32 lines
562 B
Swift

public protocol P1 {
func foo1()
var Ins : Int { get set }
func foo2(a : Int, b: Int)
subscript(_ a : Int) -> Int { get set }
func fooConstraint()
}
public protocol P2 : P1 {
func bar1()
func bar2()
}
public extension P2 {
func foo1() { }
var Ins : Int { get { return 1 } set {}}
func foo2(a : Int, b: Int) {}
subscript(_ a : Int) -> Int { get {return 1} set {} }
}
public protocol P3 {
func p3Required()
}
public extension P2 where Self : P3 {
func fooConstraint() {}
}
public extension Dictionary.Keys {
public func foo() {}
}