You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)" bundled with Xcode 13.2 (13C90)
MacOS 12.1 (21C52) running on Apple Silicon
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: 290caef4f2e957816cbee165e1cb13cc
Issue Description:
When accessing a constant member of an actor defined within another module, the Swift compiler crashes.
The attached project contains two modules: "dependency" in which an actor "A" with a constant member is declared, and "SwiftCrash" which depends on "dependency" and uses "A" within an async function.
Attachment: Download
Environment
"Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)" bundled with Xcode 13.2 (13C90)
MacOS 12.1 (21C52) running on Apple Silicon
Additional Detail from JIRA
md5: 290caef4f2e957816cbee165e1cb13cc
Issue Description:
When accessing a constant member of an actor defined within another module, the Swift compiler crashes.
The attached project contains two modules: "dependency" in which an actor "A" with a constant member is declared, and "SwiftCrash" which depends on "dependency" and uses "A" within an async function.
Expected behaviour
The expected declaration of said function:
Which compiles as long as "A" is defined within the same module.
When "A" is defined within another module, the compiler will throw one of the following errors depending on whether "aFunction" is async:
Sync:
Async:
The text was updated successfully, but these errors were encountered: