tests: add base_init_nosuper.nit
authorJean Privat <jean@pryen.org>
Fri, 15 Aug 2014 02:34:41 +0000 (22:34 -0400)
committerJean Privat <jean@pryen.org>
Fri, 15 Aug 2014 02:34:41 +0000 (22:34 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/sav/base_init_nosuper.res [new file with mode: 0644]
tests/sav/base_init_nosuper_alt1.res [new file with mode: 0644]
tests/sav/base_init_nosuper_alt2.res [new file with mode: 0644]
tests/sav/base_init_nosuper_alt3.res [new file with mode: 0644]

diff --git a/tests/sav/base_init_nosuper.res b/tests/sav/base_init_nosuper.res
new file mode 100644 (file)
index 0000000..1191247
--- /dev/null
@@ -0,0 +1,2 @@
+1
+2
diff --git a/tests/sav/base_init_nosuper_alt1.res b/tests/sav/base_init_nosuper_alt1.res
new file mode 100644 (file)
index 0000000..3328062
--- /dev/null
@@ -0,0 +1,3 @@
+1
+1
+2
diff --git a/tests/sav/base_init_nosuper_alt2.res b/tests/sav/base_init_nosuper_alt2.res
new file mode 100644 (file)
index 0000000..bc300cc
--- /dev/null
@@ -0,0 +1 @@
+alt/base_init_nosuper_alt2.nit:27,13--19: Error: nosuper only in `init`
diff --git a/tests/sav/base_init_nosuper_alt3.res b/tests/sav/base_init_nosuper_alt3.res
new file mode 100644 (file)
index 0000000..80861af
--- /dev/null
@@ -0,0 +1 @@
+alt/base_init_nosuper_alt3.nit:24,3--7: Error: method is annotated nosuper but a constructor call is present