All Downloads are FREE. Search and download functionalities are using the official Maven repository.

munit.internal.MacroCompat.scala Maven / Gradle / Ivy

The newest version!
package munit.internal

import munit.Clue
import munit.Location

import scala.language.experimental.macros

object MacroCompat {

  trait LocationMacro {
    implicit def generate: Location = macro MacroCompatScala2.locationImpl
  }

  trait ClueMacro {
    implicit def generate[T](value: T): Clue[T] =
      macro MacroCompatScala2.clueImpl
  }

  trait CompileErrorMacro {
    def compileErrors(code: String): String =
      macro MacroCompatScala2.compileErrorsImpl
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy