File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ class ConstFanClassCorrect: ConstFan {
5454}
5555
5656class ConstFanClassWrong1: ConstFan {
57- static _const let v: String // expected-error {{_const let should be initialized with a compile-time literal}}
57+ static _const let v: String // expected-error {{_const let should be initialized with a literal value }}
5858 // expected-error@-1 {{'static let' declaration requires an initializer expression or an explicitly stated getter}}
5959 // expected-note@-2 {{add an initializer to silence this error}}
6060}
6161
6262class ConstFanClassWrong2: ConstFan {
63- static _const let v: String = " \( v) " // expected-error {{_const let should be initialized with a compile-time literal}}
63+ static _const let v: String = " \( v) " // expected-error {{_const let should be initialized with a literal value }}
6464}
6565
6666class ConstFanClassWrong3: ConstFan {
@@ -69,7 +69,7 @@ class ConstFanClassWrong3: ConstFan {
6969
7070class ConstFanClassWrong4: ConstFan {
7171 static func giveMeString() -> String { return " " }
72- static _const let v: String = giveMeString() // expected-error {{_const let should be initialized with a compile-time literal}}
72+ static _const let v: String = giveMeString() // expected-error {{_const let should be initialized with a literal value }}
7373}
7474
7575_const let globalConst = 3
You can’t perform that action at this time.
0 commit comments