Skip to content

Actorable protocols with associated types break down in codegen #656

@ktoso

Description

@ktoso

Since we have:

protocol Proposer {
associatedtype Value: Codable
}

and the generated code can't be nested in Proposer so... it has to be:

extension GeneratedActor.Messages {
    public enum CASProposer: ActorMessage {
        case change(update: @escaping (Value) throws -> Value ...)

so... this can't work since the Value is not known. We need to, for every associated type in an actorable protocol generate a corresponding generic in the message...

extension GeneratedActor.Messages {
    public enum CASProposer<Value: Codable>: ActorMessage { 
...

🤔 I hope that'll be possible...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions