Files
swift-mirror/validation-test/compiler_crashers/findSyntacticErrorForConsume-a0b4d9.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

5 lines
435 B
Swift

// {"kind":"typecheck","signature":"swift::findSyntacticErrorForConsume(swift::ModuleDecl*, swift::SourceLoc, swift::Expr*, llvm::function_ref<swift::Type (swift::Expr*)>)","signatureAssert":"Assertion failed: (!isa<ConsumeExpr>(subExpr) && \"operates on the sub-expr of a consume\"), function findSyntacticErrorForConsume"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a(consume : String) {
consume consume consume