fix never-released 2.12.13 regression where Array[Unit].empty caused NPE#9335
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE#9335SethTisue merged 1 commit intoscala:2.12.xfrom
Conversation
this regressed in scala#9091 the problem turned up in the Scala 2.12 community build -- when Scala 3 support was added to the scala-collection-compat repo, a test case there was altered in a way that happened to tickle this
|
btw, 2.13 doesn't have the bug — it seems #9091 wasn't forward-ported to 2.13, as per scala/scala-dev#721, though @dwijnand also mentioned at #9206 that it “might follow in cherry-pick/forward-port PR”, not sure if that's still on a to-do list somewhere |
its was on my TODO list (a long one) |
|
It came up whether to disallow |
|
@som-snytt it's perhaps worth mentioning that it isn't just |
The order of events is reversed: in scala/scala-dev#721 I settled it that it was too time-consuming for me to cherrypick. |
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE
fix never-released 2.12.13 regression where Array[Unit].empty caused NPE
this regressed in #9091
the problem turned up in the Scala 2.12 community build -- when Scala 3 support was added to the scala-collection-compat repo, a test case there was altered in a way that happened to tickle this
even though the bug doesn't exist in 2.13, the change to the test should be merged forward