Files
swift-mirror/validation-test/IDE/slow/rdar45511835.swift
2021-07-19 15:24:06 +01:00

14 lines
443 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s | %FileCheck %s
// REQUIRES: long_test
// This used to take ~6 min to complete.
// Now it's 2 min: rdar://problem/48818341
func testing() {
return (["a"] + [1].map { String($0) })
.map { $0 + "b" as String }
.filter { $0 != "" } #^COMPLETE^#
}
// CHECK: Decl[InfixOperatorFunction]/{{.*}}: [' ']+ {#[String]#}[#[String]#]; name=+