summaryrefslogblamecommitdiff
path: root/test/files/pos/t6516.scala
blob: aed359976eea10afc0eaf07fe584d161d8966b4e (plain) (tree)
1
2
3
4
5
6
7
                                         
                                           



                                       
                                                                                        





                                         
                                                 




                                                                            
import scala.language.experimental.macros
import scala.reflect.macros.BlackboxContext
import scala.collection.TraversableLike

// This one compiles
object Test {
  type Alias[T, CC[_]] = BlackboxContext { type PrefixType = TraversableLike[T, CC[T]] }
  def f() = macro f_impl
  def f_impl(c: Alias[Int, List])() = ???
}

// This one doesn't
object Test2 {
  type Ctx = scala.reflect.macros.BlackboxContext
  type Alias[T, CC[_]] = Ctx { type PrefixType = TraversableLike[T, CC[T]] }

  def f() = macro f_impl
  def f_impl(c: Alias[Int, List])() = ???
}