File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ StringRef Decl::getDescriptiveKindName(DescriptiveDeclKind K) {
385385 ENTRY (MutableAddressor, " mutableAddress accessor" );
386386 ENTRY (ReadAccessor, " _read accessor" );
387387 ENTRY (ModifyAccessor, " _modify accessor" );
388- ENTRY (InitAccessor, " init acecssor " );
388+ ENTRY (InitAccessor, " init accessor " );
389389 ENTRY (EnumElement, " enum case" );
390390 ENTRY (Module, " module" );
391391 ENTRY (Missing, " missing decl" );
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public struct TestInitAccessors {
2222
2323 public var x : Int {
2424 @storageRestrictions ( initializes: _x)
25- init { // expected-note 2 {{init acecssor for property 'x' is not '@usableFromInline' or public}}
25+ init { // expected-note 2 {{init accessor for property 'x' is not '@usableFromInline' or public}}
2626 self . _x = newValue
2727 }
2828
@@ -35,11 +35,11 @@ public struct TestInitAccessors {
3535
3636 @_alwaysEmitIntoClient
3737 public init ( x: Int ) {
38- self . x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
38+ self . x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
3939 }
4040
4141 @inlinable
4242 public init ( ) {
43- self . x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
43+ self . x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
4444 }
4545}
You can’t perform that action at this time.
0 commit comments