Files
swift-mirror/test/IDE/conforming-methods-after-var-in-closure.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 {
}
}
}