We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfff091 commit bd92799Copy full SHA for bd92799
test/decl/subscript/subscripting.swift
@@ -172,7 +172,7 @@ struct RetOverloadedSubscript {
172
173
struct MissingGetterSubscript1 {
174
subscript (i : Int) -> Int {
175
- } // expected-error {{computed property must have accessors specified}}
+ } // expected-error {{subscript must have accessors specified}}
176
}
177
struct MissingGetterSubscript2 {
178
subscript (i : Int, j : Int) -> Int { // expected-error{{subscript declarations must have a getter}}
0 commit comments