Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] mapTo fails to compile if case class is defined inside object #4354

Open
vkorenev opened this issue Feb 19, 2025 · 0 comments
Open

[BUG] mapTo fails to compile if case class is defined inside object #4354

vkorenev opened this issue Feb 19, 2025 · 0 comments

Comments

@vkorenev
Copy link

Tapir version: 1.11.14

Scala version: 2.13.16

The following code fails to compile:

object Foo {
  case class Bar(x: String)
}

val b = plainBody[String].mapTo[Foo.Bar]

with the following message:

not found: value Bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant