airframe icon indicating copy to clipboard operation
airframe copied to clipboard

Surface.methodsOf[ObjLocal], failed with curried method

Open wiltonlazary opened this issue 2 years ago • 2 comments

Surface.methodsOf[ObjLocal], failed with curried method

inline def apply[B](key: String)(using tag: ClassTag[B], conv: AtoB[A, B]): B = $get(key, tag, conv) /* error */ inline def methodsOf[A]: Seq[MethodSurface]

wrong number of arguments at pickler for (key: String) (using tag: reflect.ClassTag[Any], conv: laz.core.lang.TypeModule.AtoB[String, Any] ): Any: (key: String) (using tag: reflect.ClassTag[Any], conv: laz.core.lang.TypeModule.AtoB[String, Any] ): Any, expected: 1, found: 3

wiltonlazary avatar Jan 17 '23 23:01 wiltonlazary

Thanks for reporting. Is this an issue specific to your ObjLocal class or any class with curried methods?

xerial avatar Jan 18 '23 18:01 xerial

Thank you for this amazing lib, any class or trait with complex curried method, my solution was to transfer the problematic methods to an extension.

wiltonlazary avatar Jan 19 '23 20:01 wiltonlazary