Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0063-rdar29782437.swift
Slava Pestov 51d4869473 Add a regression test for <https://github.com/apple/swift/pull/6536>
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.
2017-01-05 18:00:45 -08:00

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 {}
}
}