File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
commons-macros/src/main/scala/com/avsystem/commons/macros Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1120,11 +1120,12 @@ trait MacroCommons { bundle =>
11201120 // heavy wizardry employed to trick the compiler into performing the type computation that I need
11211121 val fakeMatch =
11221122 q """
1123- def $normName(tpref: $StringCls, value: $ScalaPkg.Any): $ScalaPkg.Any =
1124- macro $CommonsPkg.macros.misc.WhiteMiscMacros.normalizeGadtSubtype
1125- ( $PredefObj.??? : $baseTpe) match {
1126- case $vname: $matchedTpe => $normName( $tpref, $vname)
1127- }
1123+ import scala.language.experimental.macros
1124+ def $normName(tpref: $StringCls, value: $ScalaPkg.Any): $ScalaPkg.Any =
1125+ macro $CommonsPkg.macros.misc.WhiteMiscMacros.normalizeGadtSubtype
1126+ ( $PredefObj.??? : $baseTpe) match {
1127+ case $vname: $matchedTpe => $normName( $tpref, $vname)
1128+ }
11281129 """
11291130
11301131 c.typecheck(fakeMatch, silent = ! debugEnabled) match {
You can’t perform that action at this time.
0 commit comments