Merge: Reject arrays of null
authorJean Privat <jean@pryen.org>
Tue, 6 Jan 2015 02:02:23 +0000 (21:02 -0500)
committerJean Privat <jean@pryen.org>
Tue, 6 Jan 2015 02:02:23 +0000 (21:02 -0500)
commit0250239e756fc7bfcc437031f943fedfe370664d
treec8b6b0fc604dc02c47fc9588a73975978ffddf05
parent5dd4647d8788a02fe2d3117deaa7ee45af161aa6
parent4520c99e3f6bf016cfdc8080aac23d3fdf53cecd
Merge: Reject arrays of null

The type `Array[null]` is not exprimable directly, and this is a good thing because it is and useless type and is broken in the compilers (except with `--erasure` for obvious reasons). However, it was still possible to create such a buggy type with literal arrays. eg `[null, null]`.

Pull-Request: #1080
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>