Files
swift-mirror/validation-test/IDE/stress_tester_issues_fixed/rdar94619388.swift
Pavel Yaskevich 3159591234 [TypeChecker/CodeCompletion] Re-introduce expression sanitization before solving
A call to `SanitizeExpr` has been incorrectly removed from
`typeCheckForCodeCompletion` by refactoring to use `ASTNode`.

It is still required because fallback calls could have partially
type-checked AST.

Resolves: https://github.com/apple/swift/issues/59315
Resolves: rdar://94619388
2022-06-08 13:26:54 -07:00

9 lines
240 B
Swift

// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE
func foo(closure: (String) -> Void) -> String? {
return nil
}
func test() {
if let key = foo(closure: { str in str.suffix(2) == #^COMPLETE^#