1

In a macro impl[A: c.WeakTypeTag], if I find that c.weakTypeOf[A] <:< typeOf[Option[Any]], how do I get the type parameter of the Option? E.g., when A is Option[String], I need to find String.

0__
  • 66,707
  • 21
  • 171
  • 266

1 Answers1

0

Same problem as here:

c.asInstanceOf[TypeRefApi].args.head
Community
  • 1
  • 1
0__
  • 66,707
  • 21
  • 171
  • 266