nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206c9d2
)
typing: reject literal arrays made of `null` (because they are untypable)
author
Jean Privat
<jean@pryen.org>
Sun, 4 Jan 2015 21:39:28 +0000
(16:39 -0500)
committer
Jean Privat
<jean@pryen.org>
Sun, 4 Jan 2015 21:39:28 +0000
(16:39 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
src/semantize/typing.nit
patch
|
blob
|
history
diff --git
a/src/semantize/typing.nit
b/src/semantize/typing.nit
index
1dfaec6
..
9d24a21
100644
(file)
--- a/
src/semantize/typing.nit
+++ b/
src/semantize/typing.nit
@@
-1243,7
+1243,7
@@
redef class AArrayExpr
if mtype == null then
mtype = v.merge_types(self, mtypes)
end
- if mtype == null then
+ if mtype == null or mtype isa MNullType then
v.error(self, "Type Error: ambiguous array type {mtypes.join(" ")}")
return
end