mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* 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>
22 lines
459 B
Swift
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()
|
|
}
|