Skip to content

Commit ca9ae76

Browse files
committed
Move TupledFuntion to scala.util
Also move internal.TupledFunction to runtime.TupledFunction
1 parent c20be38 commit ca9ae76

14 files changed

+47
-38
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -895,12 +895,9 @@ class Definitions {
895895
lazy val RuntimeTuple_isInstanceOfEmptyTuple: Symbol = RuntimeTupleModule.requiredMethod("isInstanceOfEmptyTuple")
896896
lazy val RuntimeTuple_isInstanceOfNonEmptyTuple: Symbol = RuntimeTupleModule.requiredMethod("isInstanceOfNonEmptyTuple")
897897

898-
@tu lazy val TupledFunctionTypeRef: TypeRef = requiredClassRef("scala.TupledFunction")
898+
@tu lazy val TupledFunctionTypeRef: TypeRef = requiredClassRef("scala.util.TupledFunction")
899899
def TupledFunctionClass(using Context): ClassSymbol = TupledFunctionTypeRef.symbol.asClass
900-
901-
@tu lazy val InternalTupledFunctionTypeRef: TypeRef = requiredClassRef("scala.internal.TupledFunction")
902-
def InternalTupleFunctionClass(using Context): ClassSymbol = InternalTupledFunctionTypeRef.symbol.asClass
903-
def InternalTupleFunctionModule(using Context): Symbol = requiredModule("scala.internal.TupledFunction")
900+
def RuntimeTupleFunctionsModule(using Context): Symbol = requiredModule("scala.runtime.TupledFunctions")
904901

905902
// Annotation base classes
906903
@tu lazy val AnnotationClass: ClassSymbol = requiredClass("scala.annotation.Annotation")

compiler/src/dotty/tools/dotc/typer/Synthesizer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
7878
if arity == -1 then
7979
EmptyTree
8080
else if arity <= Definitions.MaxImplementedFunctionArity then
81-
ref(defn.InternalTupleFunctionModule)
81+
ref(defn.RuntimeTupleFunctionsModule)
8282
.select(s"tupledFunction$arity".toTermName)
8383
.appliedToTypes(funArgs)
8484
else
85-
ref(defn.InternalTupleFunctionModule)
85+
ref(defn.RuntimeTupleFunctionsModule)
8686
.select("tupledFunctionXXL".toTermName)
8787
.appliedToTypes(funArgs)
8888
case _ =>

library/src-bootstrapped/scala/internal/TupledFunction.scala renamed to library/src-bootstrapped/scala/runtime/TupledFunctions.scala

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,159 @@
1-
package scala
2-
package internal
1+
package scala.runtime
32

4-
import scala.runtime.{TupleXXL, FunctionXXL}
3+
import scala.util.TupledFunction
54

6-
object TupledFunction {
5+
object TupledFunctions {
76

8-
def tupledFunction0[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
7+
def tupledFunction0[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
98
tupledImpl = (f: F) => ((args: EmptyTuple) => f.asInstanceOf[() => Any].apply()).asInstanceOf[G],
10-
untupledImpl = (g: G) => (() => g.asInstanceOf[EmptyTuple => Any].apply(Tuple())).asInstanceOf[F]
9+
untupledImpl = (g: G) => (() => g.asInstanceOf[EmptyTuple => Any].apply(EmptyTuple)).asInstanceOf[F]
1110
)
1211

13-
def tupledFunction1[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
12+
def tupledFunction1[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
1413
tupledImpl = (f: F) => ((args: Tuple1[Any]) => f.asInstanceOf[Any => Any].apply(args._1)).asInstanceOf[G],
1514
untupledImpl = (g: G) => ((x1: Any) => g.asInstanceOf[Tuple1[_] => Any].apply(Tuple1(x1))).asInstanceOf[F]
1615
)
1716

18-
def tupledFunction2[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
17+
def tupledFunction2[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
1918
tupledImpl = (f: F) => f.asInstanceOf[Function2[_, _, _]].tupled.asInstanceOf[G],
2019
untupledImpl = (g: G) => Function.untupled(g.asInstanceOf[Tuple2[_, _] => Any]).asInstanceOf[F]
2120
)
2221

23-
def tupledFunction3[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
22+
def tupledFunction3[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
2423
tupledImpl = (f: F) => f.asInstanceOf[Function3[_, _, _, _]].tupled.asInstanceOf[G],
2524
untupledImpl = (g: G) => Function.untupled(g.asInstanceOf[Tuple3[_, _, _] => Any]).asInstanceOf[F]
2625
)
2726

28-
def tupledFunction4[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
27+
def tupledFunction4[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
2928
tupledImpl = (f: F) => f.asInstanceOf[Function4[_, _, _, _, _]].tupled.asInstanceOf[G],
3029
untupledImpl = (g: G) => Function.untupled(g.asInstanceOf[Tuple4[_, _, _, _] => Any]).asInstanceOf[F]
3130
)
3231

33-
def tupledFunction5[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
32+
def tupledFunction5[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
3433
tupledImpl = (f: F) => f.asInstanceOf[Function5[_, _, _, _, _, _]].tupled.asInstanceOf[G],
3534
untupledImpl = (g: G) => Function.untupled(g.asInstanceOf[Tuple5[_, _, _, _, _] => Any]).asInstanceOf[F]
3635
)
3736

38-
def tupledFunction6[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
37+
def tupledFunction6[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
3938
tupledImpl = (f: F) => f.asInstanceOf[Function6[_, _, _, _, _, _, _]].tupled.asInstanceOf[G],
4039
untupledImpl = (g: G) =>
4140
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any) =>
4241
g.asInstanceOf[Tuple6[_, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6))).asInstanceOf[F]
4342
)
4443

45-
def tupledFunction7[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
44+
def tupledFunction7[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
4645
tupledImpl = (f: F) => f.asInstanceOf[Function7[_, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
4746
untupledImpl = (g: G) =>
4847
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any) =>
4948
g.asInstanceOf[Tuple7[_, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7))).asInstanceOf[F]
5049
)
5150

52-
def tupledFunction8[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
51+
def tupledFunction8[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
5352
tupledImpl = (f: F) => f.asInstanceOf[Function8[_, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
5453
untupledImpl = (g: G) =>
5554
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any) =>
5655
g.asInstanceOf[Tuple8[_, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8))).asInstanceOf[F]
5756
)
5857

59-
def tupledFunction9[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
58+
def tupledFunction9[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
6059
tupledImpl = (f: F) => f.asInstanceOf[Function9[_, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
6160
untupledImpl = (g: G) =>
6261
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any) =>
6362
g.asInstanceOf[Tuple9[_, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9))).asInstanceOf[F]
6463
)
6564

66-
def tupledFunction10[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
65+
def tupledFunction10[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
6766
tupledImpl = (f: F) => f.asInstanceOf[Function10[_, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
6867
untupledImpl = (g: G) =>
6968
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any) =>
7069
g.asInstanceOf[Tuple10[_, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10))).asInstanceOf[F]
7170
)
7271

73-
def tupledFunction11[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
72+
def tupledFunction11[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
7473
tupledImpl = (f: F) => f.asInstanceOf[Function11[_, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
7574
untupledImpl = (g: G) =>
7675
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any) =>
7776
g.asInstanceOf[Tuple11[_, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11))).asInstanceOf[F]
7877
)
7978

80-
def tupledFunction12[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
79+
def tupledFunction12[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
8180
tupledImpl = (f: F) => f.asInstanceOf[Function12[_, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
8281
untupledImpl = (g: G) =>
8382
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any) =>
8483
g.asInstanceOf[Tuple12[_, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12))).asInstanceOf[F]
8584
)
8685

87-
def tupledFunction13[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
86+
def tupledFunction13[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
8887
tupledImpl = (f: F) => f.asInstanceOf[Function13[_, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
8988
untupledImpl = (g: G) =>
9089
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any) =>
9190
g.asInstanceOf[Tuple13[_, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13))).asInstanceOf[F]
9291
)
9392

94-
def tupledFunction14[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
93+
def tupledFunction14[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
9594
tupledImpl = (f: F) => f.asInstanceOf[Function14[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
9695
untupledImpl = (g: G) =>
9796
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any) =>
9897
g.asInstanceOf[Tuple14[_, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14))).asInstanceOf[F]
9998
)
10099

101-
def tupledFunction15[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
100+
def tupledFunction15[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
102101
tupledImpl = (f: F) => f.asInstanceOf[Function15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
103102
untupledImpl = (g: G) =>
104103
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any) =>
105104
g.asInstanceOf[Tuple15[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15))).asInstanceOf[F]
106105
)
107106

108-
def tupledFunction16[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
107+
def tupledFunction16[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
109108
tupledImpl = (f: F) => f.asInstanceOf[Function16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
110109
untupledImpl = (g: G) =>
111110
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any) =>
112111
g.asInstanceOf[Tuple16[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16))).asInstanceOf[F]
113112
)
114113

115-
def tupledFunction17[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
114+
def tupledFunction17[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
116115
tupledImpl = (f: F) => f.asInstanceOf[Function17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
117116
untupledImpl = (g: G) =>
118117
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any) =>
119118
g.asInstanceOf[Tuple17[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17))).asInstanceOf[F]
120119
)
121120

122-
def tupledFunction18[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
121+
def tupledFunction18[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
123122
tupledImpl = (f: F) => f.asInstanceOf[Function18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
124123
untupledImpl = (g: G) =>
125124
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any, x18: Any) =>
126125
g.asInstanceOf[Tuple18[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18))).asInstanceOf[F]
127126
)
128127

129-
def tupledFunction19[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
128+
def tupledFunction19[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
130129
tupledImpl = (f: F) => f.asInstanceOf[Function19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
131130
untupledImpl = (g: G) =>
132131
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any, x18: Any, x19: Any) =>
133132
g.asInstanceOf[Tuple19[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19))).asInstanceOf[F]
134133
)
135134

136-
def tupledFunction20[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
135+
def tupledFunction20[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
137136
tupledImpl = (f: F) => f.asInstanceOf[Function20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
138137
untupledImpl = (g: G) =>
139138
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any, x18: Any, x19: Any, x20: Any) =>
140139
g.asInstanceOf[Tuple20[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20))).asInstanceOf[F]
141140
)
142141

143-
def tupledFunction21[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
142+
def tupledFunction21[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
144143
tupledImpl = (f: F) => f.asInstanceOf[Function21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
145144
untupledImpl = (g: G) =>
146145
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any, x18: Any, x19: Any, x20: Any, x21: Any) =>
147146
g.asInstanceOf[Tuple21[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21))).asInstanceOf[F]
148147
)
149148

150-
def tupledFunction22[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
149+
def tupledFunction22[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
151150
tupledImpl = (f: F) => f.asInstanceOf[Function22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]].tupled.asInstanceOf[G],
152151
untupledImpl = (g: G) =>
153152
((x1: Any, x2: Any, x3: Any, x4: Any, x5: Any, x6: Any, x7: Any, x8: Any, x9: Any, x10: Any, x11: Any, x12: Any, x13: Any, x14: Any, x15: Any, x16: Any, x17: Any, x18: Any, x19: Any, x20: Any, x21: Any, x22: Any) =>
154153
g.asInstanceOf[Tuple22[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _] => Any].apply((x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, x21, x22))).asInstanceOf[F]
155154
)
156155

157-
def tupledFunctionXXL[F, G]: TupledFunction[F, G] = scala.TupledFunction[F, G](
156+
def tupledFunctionXXL[F, G]: TupledFunction[F, G] = TupledFunction[F, G](
158157
tupledImpl = (f: F) => ((args: TupleXXL) => f.asInstanceOf[FunctionXXL].apply(args.elems)).asInstanceOf[G],
159158
untupledImpl = (g: G) => new FunctionXXL {
160159
override def apply(xs: IArray[Object]): AnyRef = g.asInstanceOf[TupleXXL => AnyRef].apply(TupleXXL.fromIArray(xs))

library/src/scala/TupledFunction.scala renamed to library/src/scala/util/TupledFunction.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scala
1+
package scala.util
22

33
import scala.annotation.implicitNotFound
44

tests/neg-custom-args/erased/tupled-function-instances.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import scala.util.TupledFunction
12
object Test {
23
def main(args: Array[String]): Unit = {
34
type T

tests/neg/tupled-function-instances.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import scala.util.TupledFunction
2+
13
object Test {
24
def main(args: Array[String]): Unit = {
35
type T

tests/pos/i7851.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ given [H: Wrappable, T <: Tuple, WrappedT0 <: Tuple]
1818
def wrappedFunction[F, FArgs <: Tuple, WrapperFArgs <: Tuple, R: Wrappable](
1919
function: F
2020
)(input: FArgs)(using
21-
tf: TupledFunction[F, WrapperFArgs => Wrapped[R]],
21+
tf: util.TupledFunction[F, WrapperFArgs => Wrapped[R]],
2222
vs: Wrapper.Aux[FArgs, WrapperFArgs]
2323
): (R, R => Option[FArgs]) = {
2424
val variableInput = input.asInstanceOf[WrapperFArgs] // This is not correct but it's ok for the sake of this example.

tests/pos/tupled-function-instances.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import scala.util.TupledFunction
12
object Test {
23
def main(args: Array[String]): Unit = {
34
type T

tests/run/tupled-function-andThen.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import scala.util.TupledFunction
2+
13
object Test {
24
def main(args: Array[String]): Unit = {
35

tests/run/tupled-function-apply.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import scala.util.TupledFunction
2+
13
object Test {
24
def main(args: Array[String]): Unit = {
35

0 commit comments

Comments
 (0)