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
Following code compiles fine with Scala 2 but results in error with Scala 3.
Error is:
Errors are: