[SR-15351] curious case of defer
MainActor call in a Task
#57673
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
Environment
Xcode 13
Additional Detail from JIRA
md5: 10c8f8913a8f1abbe13d1d31c412ddd3
Issue Description:
Consider:
The second call to `self.foo()` is a compile error, but the first is not. That seems incoherent, as they are both called from within exactly the same context. The `defer` shouldn't make a difference.
The text was updated successfully, but these errors were encountered: