Skip to content

Commit 0d5b53d

Browse files
committed
Update value_generics.swift
1 parent 687b3f5 commit 0d5b53d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Sema/value_generics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func testC4<let T: Int>(with c: C<T, T>) {
121121
struct D<let N: Int & P> {} // expected-error {{non-protocol, non-class type 'Int' cannot be used within a protocol-constrained type}}
122122

123123
struct E<A, let b: Int> { // expected-note {{'b' previously declared here}}
124-
static var b: Int { // expected-error {{invalid redeclaration of 'b'}}
124+
static var b: Int { // expected-warning {{redeclaration of 'b' is deprecated and will be an error in Swift 5}}
125125
// expected-note@-1 {{'b' declared here}}
126126
123
127127
}
@@ -183,7 +183,7 @@ func testTypeOf2<let c: Int>(_: E<Int, c>.Type) -> Int {
183183
}
184184

185185
struct H<let I: Int> { // expected-note {{'I' previously declared here}}
186-
struct I {} // expected-error {{invalid redeclaration of 'I'}}
186+
struct I {} // expected-warning {{redeclaration of 'I' is deprecated and will be an error in Swift 5}}
187187
}
188188

189189
typealias J = E<Int, 123>.b // expected-error {{static property 'b' is not a member type of 'E<Int, 123>'}}

0 commit comments

Comments
 (0)