You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{code}Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_40).
Type in expressions to have them evaluated.
Type :help for more information.
{code}Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_40).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scala.language.experimental.macros
import scala.language.experimental.macros
scala> import scala.reflect.macros.Context
import scala.reflect.macros.Context
scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._
scala> def oneM(c:Context)(v:c.Expr[Int]):c.Expr[Int]= v
oneM: (c: scala.reflect.macros.Context)(v: c.Expr[Int])c.Expr[Int]
scala> def one(v:Int) = macro oneM
one: (v: Int)Int
scala> reify{one(1)}
:15: error: exception during macro expansion: java.lang.StackOverflowError
reify{one(1)}
{code}
The text was updated successfully, but these errors were encountered: