Commit 10bc131
committed
Ensure
Fixes #23179
Since JDK 9, argument checks for LambdaMetaFactory have become stricter.
Which is to say that its JDK 8 version was too lax.
We now align with Scala 2's behavior and erase `Array[? >: AnyRef]`
to `Object[]` instead of just `Object`. This seems consistent with
how we handle `Array[Any]`, which also erases to `Object[]`.Array[? >: AnyRef] erases to Object[]
1 parent 570e840 commit 10bc131
File tree
2 files changed
+9
-0
lines changed- compiler/src/dotty/tools/dotc/core
- tests/run
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments