Skip to content

Commit 8a9d7e6

Browse files
committed
[Compile Time Values] Adjust error text in test/Sema/const_pass_as_arguments.swift
1 parent 5415d6d commit 8a9d7e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Sema/const_pass_as_arguments.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ class ConstFanClassCorrect: ConstFan {
5454
}
5555
5656
class 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
6262
class 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
6666
class ConstFanClassWrong3: ConstFan {
@@ -69,7 +69,7 @@ class ConstFanClassWrong3: ConstFan {
6969
7070
class 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

0 commit comments

Comments
 (0)