blob: 4d253f31fc7708df52226fd049603c936cab79a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
val $u: ru.type = ru;
val $m: $u.Mirror = ru.runtimeMirror({
final class $anon extends scala.AnyRef {
def <init>(): anonymous class $anon = {
$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.base.Universe with Singleton]($m$untyped: scala.reflect.base.MirrorOf[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.base.Universe with Singleton]($m$untyped: scala.reflect.base.MirrorOf[U]): U#Type = {
val $u: U = $m$untyped.universe;
val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
$u.ConstantType.apply($u.Constant.apply(2))
}
};
new $typecreator2()
}))
}
ru.reify[Int](2)
|