mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
203 B
Swift
13 lines
203 B
Swift
// RUN: not %target-typecheck-verify-swift
|
|
|
|
struct Foo {
|
|
public func subscribe(_: @escaping () -> Void) {}
|
|
public static func foo() {}
|
|
|
|
func bind() {
|
|
subscribe {
|
|
_ = "\(foo)"
|
|
}
|
|
}
|
|
}
|