tests: extends base_array to test `[null, null]`
authorJean Privat <jean@pryen.org>
Sun, 4 Jan 2015 21:40:13 +0000 (16:40 -0500)
committerJean Privat <jean@pryen.org>
Sun, 4 Jan 2015 21:40:13 +0000 (16:40 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/base_array.nit
tests/sav/base_array_alt2.res [new file with mode: 0644]

index f37dd3a..3071768 100644 (file)
@@ -25,3 +25,4 @@ for i in a do
 end
 
 #alt1# var b = [10, true]
+#alt2# var c = [null, null]
diff --git a/tests/sav/base_array_alt2.res b/tests/sav/base_array_alt2.res
new file mode 100644 (file)
index 0000000..e9c5053
--- /dev/null
@@ -0,0 +1 @@
+alt/base_array_alt2.nit:28,9--20: Type Error: ambiguous array type null null