Files
swift-mirror/validation-test/compiler_crashers_fixed/ActorIsolationChecker-checkLocalCaptures-40188c.swift
Hamish Knight 078c3c976f [Sema] Avoid walking extensions in ActorIsolationChecker
We already avoid walking into TypeDecls, do the same for
ExtensionDecls. Normally extensions can't appear here, but for invalid
code they may be nested within other decls/stmts.
2026-06-16 00:52:54 +01:00

9 lines
404 B
Swift

// {"kind":"typecheck","original":"b8967a13","signature":"(anonymous namespace)::ActorIsolationChecker::checkLocalCaptures(swift::AnyFunctionRef)","signatureAssert":"Assertion failed: (Captures.hasBeenComputed()), function getCaptureInfo","signatureNext":"ActorIsolationChecker::walkToExprPre"}
// RUN: not %target-swift-frontend -typecheck %s
func a() {
extension <#type#> {
var b = {
}
}
}