8000 Misleading error message when trying to use `_.into.transform()` or `_.to` in a `given Transformer` definition · Issue #165 · arainko/ducktape · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Misleading error message when trying to use _.into.transform() or _.to in a given Transformer definition #165
Closed
@BenFradet

Description

@BenFradet

I must be dense but the following:

  final case class A(a: Int)
  final case class B(b: Int)
  given Transformer[A, B] =
    _.into[B]
      .transform(Field.renamed(_.b, _.a))

gives me The path segment 'b' is not valid as it is not a field of a case class or an argument of a function @ B

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0