Skip to content

Commit 876915e

Browse files
committed
[Test] Moved objc part of requirement_inference.
Gave it its own file to be guarded with REQUIRES: objc_interop.
1 parent 55d2ce7 commit 876915e

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

test/Generics/requirement_inference.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -224,23 +224,6 @@ struct X11<T: P12, U: P12> where T.B == U.B.A {
224224
func upperSameTypeConstraint<V>(_: V) where U == X10 { }
225225
}
226226

227-
#if _runtime(_ObjC)
228-
// rdar://problem/30610428
229-
@objc protocol P14 { }
230-
231-
class X12<S: AnyObject> {
232-
func bar<V>(v: V) where S == P14 {
233-
}
234-
}
235-
236-
@objc protocol P15: P14 { }
237-
238-
class X13<S: P14> {
239-
func bar<V>(v: V) where S == P15 {
240-
}
241-
}
242-
#endif
243-
244227
protocol P16 {
245228
associatedtype A
246229
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: %target-typecheck-verify-swift -warn-redundant-requirements
2+
3+
// REQUIRES: objc_interop
4+
5+
// rdar://problem/30610428
6+
@objc protocol P14 { }
7+
8+
class X12<S: AnyObject> {
9+
func bar<V>(v: V) where S == P14 {
10+
}
11+
}
12+
13+
@objc protocol P15: P14 { }
14+
15+
class X13<S: P14> {
16+
func bar<V>(v: V) where S == P15 {
17+
}
18+
}
19+

0 commit comments

Comments
 (0)