File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -433,9 +433,6 @@ static bool isLegalSILType(CanType type) {
433
433
// L-values and inouts are not legal.
434
434
if (!type->isMaterializable ()) return false ;
435
435
436
- // Unbound generic types are not legal.
437
- if (type->hasUnboundGenericType ()) return false ;
438
-
439
436
// Function types must be lowered.
440
437
if (isa<AnyFunctionType>(type)) return false ;
441
438
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ import Swift
7
7
import Foundation
8
8
import objc_generics
9
9
10
- extension GenericClass {
10
+ public extension GenericClass {
11
11
func method( ) { }
12
12
class func classMethod( ) { }
13
13
}
14
+
15
+ public func takesFunction< T : AnyObject > ( fn: @escaping ( GenericClass < T > ) -> ( ) ) -> ( GenericClass < T > ) -> ( ) {
16
+ let copy = fn
17
+ return copy
18
+ }
You can’t perform that action at this time.
0 commit comments