mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
169 B
Swift
14 lines
169 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
protocol Wrapper<T> {
|
|
associatedtype T
|
|
|
|
func get()
|
|
}
|
|
|
|
func foo<R>(_: R) -> any Wrapper<R> {}
|
|
|
|
func test() {
|
|
foo(0).get()
|
|
}
|