AST: Fix typo in descriptive decl kind string

This commit is contained in:
Anthony Latsis
2025-03-31 17:55:40 +01:00
parent cba4aeb1b4
commit 0aeea9805c
2 changed files with 4 additions and 4 deletions

View File

@@ -385,7 +385,7 @@ StringRef Decl::getDescriptiveKindName(DescriptiveDeclKind K) {
ENTRY(MutableAddressor, "mutableAddress accessor");
ENTRY(ReadAccessor, "_read accessor");
ENTRY(ModifyAccessor, "_modify accessor");
ENTRY(InitAccessor, "init acecssor");
ENTRY(InitAccessor, "init accessor");
ENTRY(EnumElement, "enum case");
ENTRY(Module, "module");
ENTRY(Missing, "missing decl");

View File

@@ -22,7 +22,7 @@ public struct TestInitAccessors {
public var x: Int {
@storageRestrictions(initializes: _x)
init { // expected-note 2 {{init acecssor for property 'x' is not '@usableFromInline' or public}}
init { // expected-note 2 {{init accessor for property 'x' is not '@usableFromInline' or public}}
self._x = newValue
}
@@ -35,11 +35,11 @@ public struct TestInitAccessors {
@_alwaysEmitIntoClient
public init(x: Int) {
self.x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
self.x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
}
@inlinable
public init() {
self.x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
self.x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
}
}