blob: 3266039c35ea2581cfc2803bf08765cfd53c92d8 (
plain) (
blame)
1
2
3
4
5
6
|
import scala.reflect.macros.Context
object Macros {
def returnsString(i: Double): String = macro returnsIntImpl
def returnsIntImpl(c: Context)(i: c.Expr[Double]): c.Expr[Int] = ???
}
|