mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The PR added a Sema test with a minimal test case; add a bigger test more closely resembling the original snippet and make sure it gets all the way through IRGen.
18 lines
262 B
Swift
18 lines
262 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
//
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
public class C : NSObject {}
|
|
|
|
public protocol P {
|
|
associatedtype A : C
|
|
}
|
|
|
|
public class X<T : P> : NSObject {
|
|
public func foo(x: T.A) -> T.A {
|
|
while true {}
|
|
}
|
|
}
|