mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Match the logic in `getTypeForCompletion` and avoid using an unbound generic type as the expected type for a completion. rdar://155420395
5 lines
399 B
Swift
5 lines
399 B
Swift
// {"kind":"complete","signature":"swift::ide::CodeCompletionResultType::calculateTypeRelation(swift::ide::ExpectedTypeContext const*, swift::DeclContext const*, swift::ide::USRBasedTypeContext const*) const"}
|
|
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
|
|
func b(a : Array<Int>) {
|
|
let: Array = a.prefix( #^^#
|