mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For instance:
protocol P1 {
func foo()
}
protocol P2 : P1 {
func bar()
}
extension P2 {
func foo() {}
}
We report the foo() in P2's extension as the default implementation of foo() declared in P1.
6 lines
262 B
Swift
6 lines
262 B
Swift
// RUN: rm -rf %t.mod
|
|
// RUN: mkdir -p %t.mod
|
|
// RUN: %swift -emit-module -o %t.mod/cake1.swiftmodule %S/Inputs/cake1.swift -parse-as-library
|
|
// RUN: %sourcekitd-test -req=doc-info -module cake1 -- -I %t.mod > %t.response
|
|
// RUN: diff -u %s.response %t.response
|