diff options
Diffstat (limited to 'main/core/src/util/Compat.scala')
-rw-r--r-- | main/core/src/util/Compat.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/core/src/util/Compat.scala b/main/core/src/util/Compat.scala new file mode 100644 index 00000000..859f3747 --- /dev/null +++ b/main/core/src/util/Compat.scala @@ -0,0 +1,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) + } +} |