mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
161 B
Swift
10 lines
161 B
Swift
// RUN: %target-swift-emit-silgen %s -verify
|
|
|
|
func foo<T>(_ f: () -> T) -> T { return f() }
|
|
|
|
class Foo<U> {
|
|
func bar() -> Self {
|
|
return foo { self }
|
|
}
|
|
}
|