Skip to content

Commit 347d94b

Browse files
committed
[test] Add some alias crash signatures
The signatures here are bogus, put the correct signatures in as aliases.
1 parent a2d707b commit 347d94b

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// {"kind":"complete","signature":"doPrintTypeInterface(swift::CompilerInvocation const&, llvm::StringRef, llvm::StringRef)"}
2-
// Actual signature: checkSingleOverride
1+
// {"kind":"complete","signature":"doPrintTypeInterface(swift::CompilerInvocation const&, llvm::StringRef, llvm::StringRef)","aliases":["checkSingleOverride(swift::ValueDecl*, swift::ValueDecl*)"]}
32
// RUN: not --crash %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -source-filename %s
43
class a { subscript(a) a { set } class b : a { override subscript(a) a {
54
#^COMPLETE^#
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// {"kind":"complete","signature":"swift::irgen::IRGenModule::emitLazyObjCProtocolDefinition(swift::ProtocolDecl*)"}
2-
// Actual signature: matchCallArguments
1+
// {"kind":"complete","signature":"swift::irgen::IRGenModule::emitLazyObjCProtocolDefinition(swift::ProtocolDecl*)","aliases":["swift::constraints::ConstraintSystem::getType(swift::ASTNode) const"]}
32
// RUN: not --crash %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -code-completion-diagnostics -source-filename %s
43
{ switch { case let c(#^COMPLETE^# b) a
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// {"kind":"complete","signature":"swift::ide::printTypeUSR(swift::Type, llvm::raw_ostream&)"}
2-
// Actual signature: getContextSubstitutions
1+
// {"kind":"complete","signature":"swift::ide::printTypeUSR(swift::Type, llvm::raw_ostream&)","aliases":["swift::TypeBase::getContextSubstitutions(swift::DeclContext const*, swift::GenericEnvironment*)"]}
32
// RUN: not --crash %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -source-filename %s
43
protocol a extension a where Self == { extension a#^COMPLETE^# protocol b
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// {"kind":"complete","signature":"swift::Demangle::ASTBuilder::findTypeDecl(swift::DeclContext*, swift::Identifier, swift::Identifier, swift::Demangle::Node::Kind)"}
2-
// Actual signature: openTypeParameter
1+
// {"kind":"complete","signature":"swift::Demangle::ASTBuilder::findTypeDecl(swift::DeclContext*, swift::Identifier, swift::Identifier, swift::Demangle::Node::Kind)","aliases":["openTypeParameter(swift::constraints::ConstraintSystem&, swift::Type, swift::GenericEnvironment*, llvm::DenseMap<swift::SubstitutableType*, swift::TypeVariableType*, llvm::DenseMapInfo<swift::SubstitutableType*, void>, llvm::detail::DenseMapPair<swift::SubstitutableType*, swift::TypeVariableType*>>&)"]}
32
// RUN: not --crash %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -source-filename %s
43
struct a<b:RangeReplaceableCollection where b ={ c: b.Element? { #^COMPLETE^#

0 commit comments

Comments
 (0)