mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Type lowering a type with abstract type parameters requires a generic signature, but type lowering does not ever affect class types, so we can be unprincipled and bypass the problem. Work around for rdar://problem/24590570.
13 lines
222 B
Swift
13 lines
222 B
Swift
// RUN: %target-swift-frontend -emit-ir -verify %s
|
|
class GenericClass<T> { }
|
|
|
|
protocol MyProtocol { }
|
|
|
|
class MyClass {
|
|
func myFunction<T, O: GenericClass<T> where T: MyProtocol>(myArg: O) -> T {
|
|
fatalError()
|
|
}
|
|
}
|
|
|
|
|