lihaoyi / autowire

Macros for simple/safe RPCs between Scala applications, including ScalaJS/ScalaJVM
378 stars 48 forks source link

Does autowire works with generic methods? #52

Closed qingwei91 closed 8 years ago

qingwei91 commented 8 years ago

Hi, may I know if autowire works with methods that takes in type parameters?

For example

def generateData[T](implicit generator: Gen[T]): T = ???

If it does not, what is the recommended way?

write methods for each type I want to use?

qingwei91 commented 8 years ago

No it does not, reply got from scalajs gitter channel