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

Method surface for methods with multiple parameter lists fails with Scala 3 #3355

Closed
OndrejSpanel opened this issue Jan 29, 2024 · 0 comments
Labels

Comments

@OndrejSpanel
Copy link
Contributor

Following code compiles fine with Scala 2 but results in error with Scala 3.

  case class ParamLists() {
    def mutipleParamLists()(): Unit = ()
  }

  Surface.methodsOf[ParamLists]

Error is:

missing argument list for method mutipleParamLists in class ParamLists

def mutipleParamLists()(): Unit

  case class ParamListsAB() {
    def mutipleParamLists(a: Int)(b: Int): Unit = ()
  }

  Surface.methodsOf[ParamListsAB]

Errors are:

wrong number of arguments at pickler for (a: Int)(b: Int): Unit: (Main.ParamListsAB#mutipleParamLists : (a: Int)(b: Int): Unit), expected: 1, found: 2

object Tuple2 in package scala does not take parameters

@xerial xerial added the bug label Jan 31, 2024
xerial added a commit that referenced this issue Feb 25, 2024
@xerial xerial closed this as completed in 186e8a2 Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants