summaryrefslogtreecommitdiff
path: root/main/core/src/util/Compat.scala
blob: 859f3747690efadf1b54d74399cfad697739760e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package mill.util

import scala.reflect.macros.blackbox.Context

object Compat{
  def copyAnnotatedType(c: Context)
                       (tpe: c.universe.AnnotatedType,
                        newAnnots: List[c.universe.Annotation]) = {
    import c.universe.compat._

    c.universe.AnnotatedType(newAnnots, tpe.underlying)
  }
}