Skip to content

Commit bd92799

Browse files
author
enomoto
committed
test: Error message for a subscript without accessors says "computed property"
1 parent bfff091 commit bd92799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/subscript/subscripting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct RetOverloadedSubscript {
172172

173173
struct MissingGetterSubscript1 {
174174
subscript (i : Int) -> Int {
175-
} // expected-error {{computed property must have accessors specified}}
175+
} // expected-error {{subscript must have accessors specified}}
176176
}
177177
struct MissingGetterSubscript2 {
178178
subscript (i : Int, j : Int) -> Int { // expected-error{{subscript declarations must have a getter}}

0 commit comments

Comments
 (0)