Skip to content

Commit 66c8e30

Browse files
committed
Fix a diagnostic that changed slightly.
1 parent c8b4357 commit 66c8e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ClangImporter/enum-with-target.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let calendarUnitsDep: NSCalendarUnitDeprecated = [.eraCalendarUnitDeprecated, .y
1414
// rdar://problem/21081557
1515
func pokeRawValue(_ random: SomeRandomEnum) {
1616
switch (random) {
17-
case SomeRandomEnum.RawValue // expected-error{{expression pattern of type 'SomeRandomEnum.RawValue.Type' (aka 'Int.Type') cannot match values of type 'SomeRandomEnum'}}
17+
case SomeRandomEnum.RawValue // expected-error{{type 'SomeRandomEnum' has no member 'RawValue'}}
1818
// expected-error@-1{{expected ':' after 'case'}}
1919
}
2020
}

0 commit comments

Comments
 (0)