mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
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>>(myArg: O) -> T where T: MyProtocol {
|
|
fatalError()
|
|
}
|
|
}
|
|
|
|
|