mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SourceKit always sets it positively. This may lead to more aggressive fixits however less informative messages. We currently use the flag only for filling protocol stubs.
13 lines
349 B
Swift
13 lines
349 B
Swift
protocol P1 {
|
|
func foo()
|
|
}
|
|
protocol P2 {
|
|
func bar()
|
|
}
|
|
class C1: P1, P2 {}
|
|
|
|
// RUN: %sourcekitd-test -req=sema %s -- %s | %FileCheck %s
|
|
// CHECK: key.description: "type 'C1' does not conform to protocol 'P1'"
|
|
// CHECK: key.description: "type 'C1' does not conform to protocol 'P2'"
|
|
// CHECK: key.description: "do you want to add protocol stubs?"
|