WeakTypeTag for higher kinded type

74 Views Asked by At

Consider the following macro declaration:

def someMacro[Alg[_[_]]](c: Context)(implicit alg: c.WeakTypeTag[Alg[_]])

Unfortunately it does not compile. The error:

 _$2 takes no type parameters, expected: 1

Is there a way to fix it up?

1

There are 1 best solutions below

0
Dmytro Mitin On BEST ANSWER