Files
swift-mirror/test/Concurrency/LLDBDebuggerFunctionActorExtension.swift
Josh Soref 58880533bc Spelling concurrency (#42547)
* spelling: access is

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: executor

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: making

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: reabstraction

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: releasing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whoopsie

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-22 15:05:20 -07:00

22 lines
459 B
Swift

// RUN: %target-typecheck-verify-swift -disable-availability-checking -debugger-support
// REQUIRES: concurrency
// This test simulates LLDB's expression evaluator making an otherwise illegal
// synchronous call into an extension of an actor, as it would to run `p n` in
// this example.
actor A {
var n : Int = 0
}
extension A {
final func lldb_wrapped_expr() {
n = 1
}
}
@LLDBDebuggerFunction
func lldb_expr(a: A) {
a.lldb_wrapped_expr()
}