Files
swift-mirror/test/Concurrency/Inputs/OtherActors.swift
Kavon Farvardin 9bff2b43a6 fix SILGen bug for cross-module actor let accesses
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
2021-11-08 14:32:15 -08:00

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()
}