Files
swift-mirror/test/SourceKit/Sema/sema_protocol_stubs.swift
Xi Ge b5256f53b2 Sema: introduce a language option flag, DiagnosticsEditorMode. (#7982)
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.
2017-03-08 12:46:02 -08:00

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?"