mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The tentantive parse is used for diagnostic purposes but can cause code-completion to delay the same decl twice. The range of CodeCompletionExpr was previously character range which invalidated invariants of the AST. Fixes: validation-test/IDE/crashers_fixed/084-swift-parser-consumedecl.swift validation-test/IDE/crashers_fixed/104-swift-gettypeofcompletioncontextexpr.swift
2 lines
112 B
Swift
2 lines
112 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
|
let:n(f{var _=#^A^# |