mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When trying to access a let-bound property of an actor across a moudule boundary, the operation should be treated as async. But, upon reaching SILGen, the compiler would crash when trying to emit the needed hop, because the base of the element reference was missing. This commit fixes that and adds regression coverage. resolves rdar://81812013
10 lines
269 B
Swift
10 lines
269 B
Swift
public class SomeClass { }
|
|
public final class SomeSendableClass: Sendable { }
|
|
|
|
public actor OtherModuleActor {
|
|
public let a: Int = 1
|
|
public nonisolated let b: Int = 2
|
|
public let c: SomeClass = SomeClass()
|
|
public let d: SomeSendableClass = SomeSendableClass()
|
|
}
|