Files
swift-mirror/validation-test/IDE/crashers_2_fixed/0003-complete-default-argument-closure.swift
Slava Pestov ab8677faab IDE: Always use the right DeclContext
We have a hack where we use the ParsedDecl as the DeclContext,
to handle completion during function signature parsing, which
happens before the FuncDecl has been created.

While fixing this properly would require a bigger change to the
parser and AST, for now we just check if the ParsedDecl is a
child context of CurDeclContext, and only use it then.
2017-09-19 23:08:37 -07:00

4 lines
147 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
func searchTest(format: ()->String = { "" }#^A^#) {}