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 @@ -53,17 +53,17 @@ class GP<T : P> {}
53
53
class GOP < T : OP > { }
54
54
class GCP < T : CP > { }
55
55
class GSP < T : SP > { }
56
- class GAO < T : AnyObject > { }
56
+ class GAO < T : AnyObject > { } // expected-note 2{{requirement specified as 'T' : 'AnyObject'}}
57
57
58
58
func blackHole( _ t: Any ) { }
59
59
60
60
func testBindExistential( ) {
61
61
blackHole ( GP < P > ( ) ) // expected-error{{using 'P' as a concrete type conforming to protocol 'P' is not supported}}
62
62
blackHole ( GOP < OP > ( ) )
63
63
blackHole ( GCP < CP > ( ) ) // expected-error{{using 'CP' as a concrete type conforming to protocol 'CP' is not supported}}
64
- blackHole ( GAO < P > ( ) ) // expected-error{{'P' is not convertible to 'AnyObject' }}
64
+ blackHole ( GAO < P > ( ) ) // expected-error{{'GAO' requires that 'P' be a class type }}
65
65
blackHole ( GAO < OP > ( ) )
66
- blackHole ( GAO < CP > ( ) ) // expected-error{{'CP' is not convertible to 'AnyObject' }}
66
+ blackHole ( GAO < CP > ( ) ) // expected-error{{'GAO' requires that 'CP' be a class type }}
67
67
blackHole ( GSP < SP > ( ) ) // expected-error{{'SP' cannot be used as a type conforming to protocol 'SP' because 'SP' has static requirements}}
68
68
blackHole ( GAO < AnyObject > ( ) )
69
69
}
You can’t perform that action at this time.
0 commit comments