mirror of
https://github.com/apple/swift.git
synced 2026-10-26 20:15:53 +01:00
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.
9 lines
404 B
Swift
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 = {
|
|
}
|
|
}
|
|
}
|