Skip to content

Commit eddbf2e

Browse files
authored
Merge pull request swiftlang#71920 from xymus/typo-accepted-import
Sema: fix typo in diag about accepted access-levels on imports
2 parents 74fd27b + dec3ea2 commit eddbf2e

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
@@ -2465,7 +2465,7 @@ ERROR(spi_only_imports_not_enabled, none,
24652465
ERROR(access_level_on_import_unsupported, none,
24662466
"The access level %0 is unsupported on imports: "
24672467
"only 'public', 'package', 'internal', 'fileprivate' and 'private' "
2468-
"are unsupported",
2468+
"are accepted",
24692469
(DeclAttribute))
24702470
ERROR(access_level_conflict_with_exported,none,
24712471
"'%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)