-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #5411: varargs with intersection type elements
We need to generate a ClassTag to construct a Java vararg array. Just computing the class symbol of the element type is not enough, as some types do not have class symbols. We need instead to compute the class symbol on the erased element type.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
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,5 @@ | ||
trait A | ||
trait B | ||
object O { | ||
def m(x: Seq[A & B]) = java.util.Arrays.asList(x: _*) | ||
} |