“await” is needed to access a variable within an actor when using a Task with optional self #66748
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Description
Referring to the code above, Task 1 compiles successfully, whereas Task 2 encounters a compile error.
Expected behavior
The optional self in Task 2 should not foul the analysis
Environment
The text was updated successfully, but these errors were encountered: