File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
- // XFAIL: linux
2
1
// RUN: rm -rf %t && mkdir %t
3
2
// RUN: cp %s %t/main.swift
4
3
// RUN: %target-swift-frontend -parse -primary-file %t/main.swift -emit-reference-dependencies-path - > %t.swiftdeps
5
4
6
5
// SR-1267, SR-1270
7
- import Foundation
8
-
9
- class TypeType < T where T: NSString > {
10
- func call( notification: NSNotification ? ) {
11
- let set = NSOrderedSet ( )
12
- if let objects = set. array as? [ T ] {
13
- let _ = ( notification? . userInfo ? [ " great_key " ] as? NSSet ) . flatMap { updatedObjects in
14
- return updatedObjects. filter ( { element in
15
- guard let element = element as? T
16
- where objects. index ( of: element) != nil
17
- else {
18
- return false
19
- }
20
- return true
21
- } )
22
- } ?? [ ]
23
- }
24
- }
25
- }
6
+ protocol Protocol { }
7
+ class ConformingClass : Protocol { }
8
+ class BaseClass < T: Protocol > { }
9
+ class ConcreteClass < T: ConformingClass > : BaseClass < T > { }
You can’t perform that action at this time.
0 commit comments