slick - In scala, how to avoid class method hiding by companion object -


when defining slick table projections this:

def * = (id.?, email, human, languser, langlearn) <> (user2.tupled, user2.unapply) 

i observe tupled method becomes invisible define object user2.

my question going on , how avoid method hiding companion objects.

duplicate of: using .tupled method when companion object in class

tupled on custom case class companions requires manually extending function type see: https://issues.scala-lang.org/browse/si-3664 https://issues.scala-lang.org/browse/si-4808


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -