mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This commit changes fixit messages from a question/suggestion to an imperative message for protocol conformances and switch-case. Addresses https://github.com/apple/swift/issues/67510.
17 lines
684 B
Swift
17 lines
684 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %S/Inputs/deserialized_witness_mismatch_other.swift -emit-module-path %t/deserialized_witness_mismatch_other.swiftmodule
|
|
// RUN: %target-swift-frontend -I %t/ %s -typecheck -verify
|
|
|
|
// Deserialized computed properties don't have a PatternBindingDecl, so
|
|
// make sure we don't expect to find one.
|
|
|
|
import deserialized_witness_mismatch_other
|
|
|
|
protocol HasCurrent {
|
|
var current: Self { get }
|
|
// expected-note@-1 {{protocol requires property 'current' with type 'TimeZone'; add a stub for conformance}}
|
|
}
|
|
|
|
extension TimeZone : HasCurrent {}
|
|
// expected-error@-1 {{type 'TimeZone' does not conform to protocol 'HasCurrent'}}
|