mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We should have already type-checked a parent closure, and we wouldn't be able to correctly locate the node anyway since it's not actually part of the AST. While here, also walk up to the parent-most closure instead of recursing to avoid unnecessary stack frames for nested closures.
6 lines
496 B
Swift
6 lines
496 B
Swift
// {"kind":"complete","original":"7bbb1dc5","signature":"swift::TypeRepr::print(swift::ASTPrinter&, swift::PrintOptions const&, swift::optionset::OptionSet<swift::NonRecursivePrintOption, unsigned int>) const","signatureAssert":"Assertion failed: (false && \"Expression wasn't type checked?\"), function getTypeForCompletion"}
|
|
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
|
|
a ? {
|
|
init { b { extension
|
|
}#^^#
|