Skip to content

Commit 9f46a53

Browse files
committed
Rename "argument" to "parameter".
Address comment by @xwu.
1 parent 6583acd commit 9f46a53

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ ERROR(missing_dynamic_callable_kwargs_method,none,
10571057
ERROR(invalid_dynamic_member_lookup_type,none,
10581058
"@dynamicMemberLookup attribute requires %0 to have a "
10591059
"'subscript(dynamicMember:)' method with an "
1060-
"'ExpressibleByStringLiteral' argument", (Type))
1060+
"'ExpressibleByStringLiteral' parameter", (Type))
10611061

10621062
ERROR(string_index_not_integer,none,
10631063
"String must not be indexed with %0, it has variable size elements",

test/attr/attr_dynamic_member_lookup.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func test_iuo_result(x : IUOResultTest) {
167167
// Subscript index must be ExpressibleByStringLiteral.
168168
@dynamicMemberLookup
169169
struct Invalid1 {
170-
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'Invalid1' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' argument}}
170+
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'Invalid1' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' parameter}}
171171
subscript(dynamicMember member: Int) -> Int {
172172
return 42
173173
}
@@ -176,7 +176,7 @@ struct Invalid1 {
176176
// Subscript may not be variadic.
177177
@dynamicMemberLookup
178178
struct Invalid2 {
179-
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'Invalid2' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' argument}}
179+
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'Invalid2' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' parameter}}
180180
subscript(dynamicMember member: String...) -> Int {
181181
return 42
182182
}
@@ -217,7 +217,7 @@ func NotAllowedOnFunc() {
217217
// @dynamicMemberLookup cannot be declared on a base class and fulfilled with a
218218
// derived class.
219219

220-
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'InvalidBase' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' argument}}
220+
// expected-error @+1 {{@dynamicMemberLookup attribute requires 'InvalidBase' to have a 'subscript(dynamicMember:)' method with an 'ExpressibleByStringLiteral' parameter}}
221221
@dynamicMemberLookup
222222
class InvalidBase {}
223223

0 commit comments

Comments
 (0)