Files
swift-mirror/test/SourceKit/CodeComplete/crash_discriminator.swift
Doug Gregor 5936b7b585 Add test that started crashing with my initial rework of closure discriminators.
Thanks to Alex Hoppen for providing this test!
2023-01-02 21:22:05 -08:00

9 lines
230 B
Swift

func foo(array: [Int]) {
_ = array.map { (value) -> Int in
// RUN: %sourcekitd-test -req=complete -pos=%(line+1):20 %s -- %s == -req=complete -pos=%(line+2):16 %s -- %s
let decoded = 42
return decoded
}
}