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

Surface.of fails with error for a class containing generic list of tuples in Scala 3 #3418

Closed
OndrejSpanel opened this issue Feb 27, 2024 · 0 comments

Comments

@OndrejSpanel
Copy link
Contributor

airframe-surface ver. 24.2.2, Scala 3.3.2, 3.4.1-RC1

List of tuples fails with error:

import wvlet.airframe.surface.Surface

object Main {
  case class A[P](data: List[(String, P)])

  case class S(alarms: A[Int])

  Surface.of[S]

  def main(args: Array[String]): Unit = {

  }
}

Error is:

Found: (x.data : List[(String, Int)])
Required: List[(String, P)]

It seems type is not applied.

OndrejSpanel added a commit to OndrejSpanel/airframe that referenced this issue Feb 28, 2024
OndrejSpanel added a commit to OndrejSpanel/airframe that referenced this issue Feb 28, 2024
OndrejSpanel added a commit to OndrejSpanel/airframe that referenced this issue Feb 28, 2024
@xerial xerial closed this as completed in a7a8828 Feb 28, 2024
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