aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check')
-rw-r--r--tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check b/tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check
new file mode 100644
index 000000000..62de37582
--- /dev/null
+++ b/tests/disabled/macro/run/toolbox_typecheck_macrosdisabled.check
@@ -0,0 +1,41 @@
+({
+ val $u: ru.type = ru;
+ val $m: $u.Mirror = ru.runtimeMirror({
+ final class $anon extends scala.AnyRef {
+ def <init>(): <$anon: AnyRef> = {
+ $anon.super.<init>();
+ ()
+ };
+ ()
+ };
+ new $anon()
+}.getClass().getClassLoader());
+ $u.Expr.apply[Int(2)]($m, {
+ final class $treecreator1 extends TreeCreator {
+ def <init>(): $treecreator1 = {
+ $treecreator1.super.<init>();
+ ()
+ };
+ def apply[U <: scala.reflect.api.Universe with Singleton]($m$untyped: scala.reflect.api.Mirror[U]): U#Tree = {
+ val $u: U = $m$untyped.universe;
+ val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
+ $u.Literal.apply($u.Constant.apply(2))
+ }
+ };
+ new $treecreator1()
+ })($u.TypeTag.apply[Int(2)]($m, {
+ final class $typecreator2 extends TypeCreator {
+ def <init>(): $typecreator2 = {
+ $typecreator2.super.<init>();
+ ()
+ };
+ def apply[U <: scala.reflect.api.Universe with Singleton]($m$untyped: scala.reflect.api.Mirror[U]): U#Type = {
+ val $u: U = $m$untyped.universe;
+ val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
+ $u.internal.reificationSupport.ConstantType($u.Constant.apply(2))
+ }
+ };
+ new $typecreator2()
+ }))
+}: ru.Expr[Int])
+ru.reify[Int](2)