mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
260 B
Swift
12 lines
260 B
Swift
// Check that we don't crash
|
|
// RUN: %target-swift-ide-test -conforming-methods -source-filename %s -code-completion-token=TOK
|
|
|
|
func takeClosure(_ x: () -> Void) {}
|
|
|
|
func test(name: String?) {
|
|
takeClosure {
|
|
guard let url#^TOK^# = name else {
|
|
}
|
|
}
|
|
}
|