mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
267 B
Swift
14 lines
267 B
Swift
struct MyStruct {
|
|
var identifier: String
|
|
}
|
|
|
|
func takeClosure(_ x: () -> Void) {}
|
|
|
|
func test() {
|
|
takeClosure {
|
|
let foo = MyStruct()
|
|
// RUN: %sourcekitd-test -req=cursor -pos=%(line + 1):5 %s -- %s
|
|
foo.identifier = "\(item.category)#\(item.name)"
|
|
}
|
|
}
|