Skip to content

Fix #6109: implement FunctionX.curried #6111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,8 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
val returnsUnit = field.meth.tpe.widenDealias.resultType.classSymbol == UnitClass
if (returnsUnit)
ctx.requiredClass(("dotty.runtime.function.JProcedure" + arity))
else ctx.requiredClass(("dotty.runtime.function.JFunction" + arity))
else if (arity <= 2) ctx.requiredClass(("dotty.runtime.function.JFunction" + arity))
else ctx.requiredClass(("scala.Function" + arity))
}
}
}
Expand Down
233 changes: 0 additions & 233 deletions library/src/dotty/runtime/function/JFunction.java

This file was deleted.

13 changes: 0 additions & 13 deletions library/src/dotty/runtime/function/JFunction10.java

This file was deleted.

13 changes: 0 additions & 13 deletions library/src/dotty/runtime/function/JFunction11.java

This file was deleted.

13 changes: 0 additions & 13 deletions library/src/dotty/runtime/function/JFunction12.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction13.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction14.java

This file was deleted.

13 changes: 0 additions & 13 deletions library/src/dotty/runtime/function/JFunction15.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction16.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction17.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction18.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction19.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction20.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction21.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction22.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction3.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction4.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction5.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction6.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction7.java

This file was deleted.

14 changes: 0 additions & 14 deletions library/src/dotty/runtime/function/JFunction8.java

This file was deleted.

12 changes: 0 additions & 12 deletions library/src/dotty/runtime/function/JFunction9.java

This file was deleted.

2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure10.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> extends JFunction10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, BoxedUnit>, java.io.Serializable {
public interface JProcedure10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> extends scala.Function10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure11.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> extends JFunction11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, BoxedUnit>, java.io.Serializable {
public interface JProcedure11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> extends scala.Function11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure12.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extends JFunction12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, BoxedUnit>, java.io.Serializable {
public interface JProcedure12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> extends scala.Function12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure13.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extends JFunction13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, BoxedUnit>, java.io.Serializable {
public interface JProcedure13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> extends scala.Function13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure14.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends JFunction14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, BoxedUnit>, java.io.Serializable {
public interface JProcedure14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> extends scala.Function14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure15.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> extends JFunction15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, BoxedUnit>, java.io.Serializable {
public interface JProcedure15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> extends scala.Function15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure16.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> extends JFunction16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, BoxedUnit>, java.io.Serializable {
public interface JProcedure16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> extends scala.Function16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure17.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> extends JFunction17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, BoxedUnit>, java.io.Serializable {
public interface JProcedure17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> extends scala.Function17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure18.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> extends JFunction18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, BoxedUnit>, java.io.Serializable {
public interface JProcedure18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> extends scala.Function18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure19.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> extends JFunction19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, BoxedUnit>, java.io.Serializable {
public interface JProcedure19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> extends scala.Function19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure20.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends JFunction20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, BoxedUnit>, java.io.Serializable {
public interface JProcedure20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends scala.Function20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/dotty/runtime/function/JProcedure21.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import scala.runtime.BoxedUnit;

@FunctionalInterface
public interface JProcedure21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> extends JFunction21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, BoxedUnit>, java.io.Serializable {
public interface JProcedure21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> extends scala.Function21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, BoxedUnit>, java.io.Serializable {
default void $init$() {
}

Expand Down
Loading