File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ func testC4<let T: Int>(with c: C<T, T>) {
121121struct D < let N: Int & P > { } // expected-error {{non-protocol, non-class type 'Int' cannot be used within a protocol-constrained type}}
122122
123123struct 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
185185struct 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
189189typealias J = E < Int , 123 > . b // expected-error {{static property 'b' is not a member type of 'E<Int, 123>'}}
You can’t perform that action at this time.
0 commit comments