Files
swift-mirror/test/Parse/switch_incomplete.swift
Nishith Shah 8e2e625543 [Diagnostics] Use imperative msg for protocol conformance & switch-case fixits
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.
2023-08-13 22:34:26 -07:00

8 lines
375 B
Swift

// RUN: %target-typecheck-verify-swift
// <rdar://problem/15971438> Incomplete switch was parsing to an AST that
// triggered an assertion failure.
// expected-error@+1 {{switch must be exhaustive}} expected-note@+1{{add a default clause}}
switch 1 { // expected-note{{to match this opening '{'}}
case 1: // expected-error@+1{{expected '}' at end of 'switch' statement}}