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
6 changes: 6 additions & 0 deletions validation-test/IDE/crashers/77896730013ed459.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"complete","original":"0b556db7","signature":"diagnoseMatch(swift::ModuleDecl*, swift::NormalProtocolConformance*, swift::ValueDecl*, swift::RequirementMatch const&)","signatureAssert":"Assertion failed: (isa<SubscriptDecl>(Requirement) && \"Unhandled requirement kind\"), function getProtocolRequirementKind"}
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
protocol a {
#^^# macro b
struct c: a {
b
10 changes: 10 additions & 0 deletions validation-test/IDE/crashers/825c80698a299f80.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// {"kind":"complete","original":"081c2cc3","signature":"abortWithVerificationError"}
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
protocol a {
associatedtype b: SignedInteger
c,
: {
}
}
extension a {
d: SignedInteger, #^^#
4 changes: 4 additions & 0 deletions validation-test/IDE/crashers/ead1bd1fccd220ab.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"kind":"complete","original":"57e49e10","signature":"finishStorageImplInfo(swift::AbstractStorageDecl*, swift::StorageImplInfo&)"}
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
class a {
lazy(b, c) { b#^^#
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/511f277d722d94a4.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"kind":"typecheck","original":"098f0ede","signature":"swift::constraints::ConstraintSystem::getMemberReferenceTypeFromOpenedType(swift::Type, swift::Type, swift::ValueDecl*, swift::constraints::ConstraintLocator*, bool, bool)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -typecheck %s
enum a<b> {
c = d macro d()
}
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/88e136b5aa17e82f.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"kind":"typecheck","original":"3a2652c9","signature":"(anonymous namespace)::OpaqueUnderlyingTypeChecker::check()","signatureAssert":"Assertion failed: (!UniqueUnderlyingType.has_value() && \"resetting underlying type?!\"), function setUniqueUnderlyingTypeSubstitutions"}
// RUN: not --crash %target-swift-frontend -typecheck %s
var a: some Any = 0.0 {
0
}
6 changes: 6 additions & 0 deletions validation-test/compiler_crashers_2/da64654c0068fd69.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"kind":"typecheck","original":"d896f132","signature":"swift::constraints::MissingConformanceFailure::MissingConformanceFailure(swift::constraints::Solution const&, swift::constraints::ConstraintLocator*, std::__1::pair<swift::Type, swift::Type>)","signatureAssert":"Assertion failed: (getGenericContext() && \"Affected decl not within a generic context?\"), function RequirementFailure"}
// RUN: not --crash %target-swift-frontend -typecheck %s
let a =
{
0 ? [a] : [1&&: <#expression#>]
}[<#expression#>]
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/dda1d9031373fa50.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"kind":"typecheck","original":"0fdef466","signature":"(anonymous namespace)::ExprRewriter::finishApply(swift::ApplyExpr*, swift::Type, swift::constraints::ConstraintLocatorBuilder, swift::constraints::ConstraintLocatorBuilder)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a func b(c : a) { _openExistential(c do: b