once scala/scala3#16225 lands in Scala 3, I'll look into this
perhaps the new tests will pass, perhaps adjustments will be needed
including perhaps making the spec more explicit (about void? about Object fallback? about casts vs type ascription? see https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.12.3)