tests: update other tests related to init with setters
authorJean Privat <jean@pryen.org>
Wed, 27 May 2015 15:21:49 +0000 (11:21 -0400)
committerJean Privat <jean@pryen.org>
Tue, 9 Jun 2015 00:50:21 +0000 (20:50 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/base_attr4.nit
tests/sav/base_attr4.res
tests/sav/base_attr4_alt1.res
tests/sav/base_attr4_alt2.res
tests/sav/error_class_glob.res

index b8f02dc..1b88711 100644 (file)
@@ -31,9 +31,15 @@ end
 class C
        super B
        redef fun foo: Int do return 100
-       redef fun bar=(i: Int) do i.output
+       redef fun bar=(i: Int) do
+               super
+               i.output
+       end
        redef fun baz: Int do return 400
-       redef fun baz=(i: Int) do i.output
+       redef fun baz=(i: Int) do
+               super
+               i.output
+       end
 end
 
 var a = new A
index 635a8c2..3278c31 100644 (file)
@@ -9,6 +9,6 @@
 
 100
 200
-30
+200
 300
 400
index 5d77e90..2fa9ce5 100644 (file)
@@ -1 +1 @@
-alt/base_attr4_alt1.nit:40,3--5: Error: method `foo=` does not exists in `A`.
+alt/base_attr4_alt1.nit:46,3--5: Error: method `foo=` does not exists in `A`.
index 30b0f43..2f0440d 100644 (file)
@@ -1 +1 @@
-alt/base_attr4_alt2.nit:43,3--5: Error: method `bar` does not exists in `A`.
+alt/base_attr4_alt2.nit:49,3--5: Error: method `bar` does not exists in `A`.
index 38a9af9..2fd90b2 100644 (file)
@@ -1 +1,12 @@
+../lib/standard/kernel.nit:24,1--95,3: Error: `kernel#Object` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
 ../lib/standard/kernel.nit:97,1--111,3: Error: `kernel#Sys` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:124,1--182,3: Error: `kernel#Comparable` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:184,1--221,3: Error: `kernel#Discrete` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:223,1--240,3: Error: `kernel#Cloneable` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:242,1--297,3: Error: `kernel#Numeric` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:303,1--326,3: Error: `kernel#Bool` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:328,1--410,3: Error: `kernel#Float` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:412,1--514,3: Error: `kernel#Byte` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:516,1--707,3: Error: `kernel#Int` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:709,1--849,3: Error: `kernel#Char` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?
+../lib/standard/kernel.nit:851,1--858,3: Error: `kernel#Pointer` does not specialize `module_0#Object`. Possible duplication of the root class `Object`?