mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
189 B
Swift
12 lines
189 B
Swift
// RUN: %target-swift-frontend -typecheck %s
|
|
enum E<T> {}
|
|
|
|
protocol P {
|
|
associatedtype T
|
|
var closure: () -> E<T> { get }
|
|
}
|
|
|
|
struct Concrete<Value>: P {
|
|
let closure: () -> E<Value>
|
|
}
|