Skip to content

[Bug] @Codable fails in structs with static members. #26

@Midbin

Description

@Midbin

In my testing @Codable fails for structs which include static members:

@Codable
struct Test {
  static var test = "test"
}

Fails with Failed to receive result from plugin (from macro 'Codable').

It also fails in all other common permutations (with normal members etc.)

A working workaround for now is to declare these static members in an extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions