Disallow new Array[Null,Nothing]
or allow classTag[Null,Nothing]
.
#9586
Labels
new Array[Null,Nothing]
or allow classTag[Null,Nothing]
.
#9586
We need to either disallow
new Array[Null](0)
andnew Array[Nothing](0)
, or allow the materialization ofClassTag[Null]
andClassTag[Nothing]
. Otherwise, things are inconsistent.For example, currently we have the following:
Either all 4 statements should succeed, or all of them should fail to compile.
For context, disallowing
ClassTag[Null]
andClassTag[Nothing]
came from #1730 based on the rationale of avoiding a specific kind ofClassKindException
. The example from that issue can still be reproduced today usingnew Array
:results in
The text was updated successfully, but these errors were encountered: