Skip to content

Commit 1e5b464

Browse files
committed
[sema] Give a more accurate error message for enums with an invalid raw type
1 parent edfb86f commit 1e5b464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,7 @@ ERROR(multiple_enum_raw_types,none,
22772277
ERROR(raw_type_not_first,none,
22782278
"raw type %0 must appear first in the enum inheritance clause", (Type))
22792279
ERROR(raw_type_not_literal_convertible,none,
2280-
"raw type %0 is not expressible by any literal",
2280+
"raw type %0 is not expressible by a string, integer, or floating-point literal",
22812281
(Type))
22822282
ERROR(enum_raw_type_not_equatable,none,
22832283
"RawRepresentable conformance cannot be synthesized because raw type %0 is not "

0 commit comments

Comments
 (0)