export-hook icon indicating copy to clipboard operation
export-hook copied to clipboard

Fails to compile when importing types with more than one type parameter

Open nrinaudo opened this issue 8 years ago • 0 comments

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.

nrinaudo avatar Mar 06 '16 08:03 nrinaudo