export-hook
export-hook copied to clipboard
Fails to compile when importing types with more than one type parameter
Trying to use @imports
on types that have more than one type parameter fails to compile.
For example, see the following code:
import aliases._
import export.imports
object aliases {
type StringEncoder[D] = MyEncoder[String, D]
}
trait MyEncoder[E, D] {
def encode(d: D): E
}
@imports[StringEncoder]
trait LowPriorityStringEncoders
object StringEncoder extends LowPriorityStringEncoders
This yields wrong number of type arguments for MyEncoder, should be 2
.