Skip to content

Commit 8c7aeb7

Browse files
committed
remove empty lines from tests
1 parent 54dfe29 commit 8c7aeb7

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

tests/run-macros/tasty-overload-secondargs/Macro_1.scala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import scala.quoted._
32

43
object X:
@@ -12,8 +11,7 @@ object X:
1211
f.lift.apply(a)
1312

1413

15-
16-
object Macro {
14+
object Macro:
1715

1816
inline def mThen[A,B](inline x:A=>B):B = ${
1917
mThenImpl[A,B,A=>B,B]('x)
@@ -23,7 +21,6 @@ object Macro {
2321
mThenImpl[A,B,PartialFunction[A,B],Option[B]]('x)
2422
}
2523

26-
2724
def mThenImpl[A:Type, B:Type, S<:(A=>B) :Type, R:Type](x:Expr[S])(using qctx: QuoteContext):Expr[R]=
2825
import qctx.reflect._
2926
val fun = '{X}.unseal
@@ -36,7 +33,3 @@ object Macro {
3633
)
3734
val r = Apply(firstPart,List(x.unseal))
3835
r.seal.cast[R]
39-
40-
41-
42-
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
2-
3-
41
object Test:
52

63
def main(args:Array[String]):Unit =
74
val x1 = X.andThen(1){case x if (x%2 == 0) => x}
85
val x2 = Macro.mThen{case x:Int if (x%2 == 0) => x}
9-
10-
11-
12-

0 commit comments

Comments
 (0)