Skip to content

Commit dec3ea2

Browse files
committed
Sema: fix typo in diag about accepted access-levels on imports
1 parent 8bb6846 commit dec3ea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ ERROR(spi_only_imports_not_enabled, none,
24552455
ERROR(access_level_on_import_unsupported, none,
24562456
"The access level %0 is unsupported on imports: "
24572457
"only 'public', 'package', 'internal', 'fileprivate' and 'private' "
2458-
"are unsupported",
2458+
"are accepted",
24592459
(DeclAttribute))
24602460
ERROR(access_level_conflict_with_exported,none,
24612461
"'%0' is incompatible with %1; it can only be applied to public imports",

test/Sema/access-level-import-parsing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ package import PackageLib // expected-warning {{package import of 'PackageLib' w
2626
internal import InternalLib
2727
fileprivate import FileprivateLib
2828
private import PrivateLib
29-
open import OpenLib // expected-error {{The access level 'open' is unsupported on imports: only 'public', 'package', 'internal', 'fileprivate' and 'private' are unsupported}}
29+
open import OpenLib // expected-error {{The access level 'open' is unsupported on imports: only 'public', 'package', 'internal', 'fileprivate' and 'private' are accepted}}

0 commit comments

Comments
 (0)