mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Fix typo in descriptive decl kind string
This commit is contained in:
@@ -385,7 +385,7 @@ StringRef Decl::getDescriptiveKindName(DescriptiveDeclKind K) {
|
|||||||
ENTRY(MutableAddressor, "mutableAddress accessor");
|
ENTRY(MutableAddressor, "mutableAddress accessor");
|
||||||
ENTRY(ReadAccessor, "_read accessor");
|
ENTRY(ReadAccessor, "_read accessor");
|
||||||
ENTRY(ModifyAccessor, "_modify accessor");
|
ENTRY(ModifyAccessor, "_modify accessor");
|
||||||
ENTRY(InitAccessor, "init acecssor");
|
ENTRY(InitAccessor, "init accessor");
|
||||||
ENTRY(EnumElement, "enum case");
|
ENTRY(EnumElement, "enum case");
|
||||||
ENTRY(Module, "module");
|
ENTRY(Module, "module");
|
||||||
ENTRY(Missing, "missing decl");
|
ENTRY(Missing, "missing decl");
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public struct TestInitAccessors {
|
|||||||
|
|
||||||
public var x: Int {
|
public var x: Int {
|
||||||
@storageRestrictions(initializes: _x)
|
@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
|
self._x = newValue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,11 +35,11 @@ public struct TestInitAccessors {
|
|||||||
|
|
||||||
@_alwaysEmitIntoClient
|
@_alwaysEmitIntoClient
|
||||||
public init(x: Int) {
|
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
|
@inlinable
|
||||||
public init() {
|
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}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user