Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"kind":"complete","original":"2201e4ed","signature":"swift::Mangle::ASTMangler::mangleDeclAsUSR(swift::ValueDecl const*, llvm::StringRef)"}
// {"kind":"complete","original":"2201e4ed","signature":"swift::Mangle::ASTMangler::mangleDeclWithPrefix(swift::ValueDecl const*, llvm::StringRef)"}
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
enum a<b{ protocol c{ class d{ class f<b let e=f #^^#
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// {"kind":"complete","original":"f53cb65c","signature":"(anonymous namespace)::SetLocalDiscriminators::setLocalDiscriminator(swift::ValueDecl*)","signatureAssert":"Assertion failed: (LocalDiscriminator == InvalidDiscriminator && \"LocalDiscriminator is set multiple times\"), function setLocalDiscriminator"}
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
{ $a in
{
enum b {
c -> b {
#^^#
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"complete","original":"dbc89b63","signature":"swift::Mangle::ASTMangler::appendDeclName(swift::ValueDecl const*, swift::DeclBaseName, bool)","signatureAssert":"Assertion failed: (!getABIDecl(decl) && \"caller should make sure we get ABI decls\"), function appendDeclName"}
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
@abi(func a()) struct b {
@#^^#< #declaration
# >
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"typecheck","original":"2e9096bf","signature":"swift::constraints::ConstraintSystem::compareSolutions(swift::constraints::ConstraintSystem&, llvm::ArrayRef<swift::constraints::Solution>, swift::constraints::SolutionDiff const&, unsigned int, unsigned int)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -typecheck %s
extension Sequence {
b<c, d: KeyPath<Element, c>>(d )
{
[(a:2), (0.0 a : 1)].b(\.a
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"kind":"typecheck","original":"1806b993","signature":"swift::constraints::ConstraintSystem::diagnoseAmbiguityWithFixes(llvm::SmallVectorImpl<swift::constraints::Solution>&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a<each b >(repeat inout each b) -> (repeat each b
( ;
let c 0 = a( 12.3 + 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"typecheck","original":"46f686fe","signature":"swift::ValueDecl::copyFormalAccessFrom(swift::ValueDecl const*, bool)","signatureAssert":"Assertion failed: (!hasAccess() && \"access already set\"), function setAccess"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: OS=macosx
import Distributed
distributed open actor a {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"typecheck","signature":"expandMacroDefinition(swift::ExpandedMacroDefinition, swift::MacroDecl*, swift::SubstitutionMap, swift::ArgumentList*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@expression macro a()
@expression macro b<c, d>() =
#a<c, d>()
#b<String, Int>