-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for clauseInterleaving in JVM generic signatures
- Loading branch information
1 parent
ebbd685
commit c91e16f
Showing
3 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<X;Y;Z;A> | ||
(X,Y,Z) | ||
class scala.runtime.Nothing$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// scalajs: --skip | ||
|
||
object Foo: | ||
def foo[X, Y, Z](x: X, y: Y)[A](z: Z) = ??? | ||
|
||
@main def Test = | ||
val mtd = Foo.getClass().getDeclaredMethods().filter(_.getName() == "foo")(0) | ||
println(mtd.getTypeParameters().mkString("<", ";", ">")) | ||
println(mtd.getGenericParameterTypes().mkString("(", ",", ")")) | ||
println(mtd.getGenericReturnType()) |