tests: Object is an interface
authorJean Privat <jean@pryen.org>
Sun, 15 Mar 2015 07:09:16 +0000 (14:09 +0700)
committerJean Privat <jean@pryen.org>
Sun, 15 Mar 2015 14:44:58 +0000 (21:44 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

19 files changed:
tests/base_attr.nit
tests/base_attr_def.nit
tests/base_attr_init_val2.nit
tests/base_empty_module.nit
tests/base_eq_null_notnull.nit
tests/base_gen.nit
tests/base_gen2.nit
tests/base_gen_int.nit
tests/base_simple.nit
tests/base_types_formal_and_virtual.nit
tests/base_types_formal_and_virtual2.nit
tests/base_types_formal_and_virtual4.nit
tests/base_var_type_evolution_null5.nit
tests/base_var_type_evolution_null_while.nit
tests/base_var_type_evolution_nullable.nit
tests/error_constraint_raf.nit.broken
tests/error_needed_types.nit
tests/error_prop_glob.nit
tests/test_prog/platform/platform.nit

index a21188b..4fef2d7 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
index 4b1d21e..ecab175 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
index cbddbb7..14a7ba1 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 import end
-class Object
+interface Object
 end
 class Int
 end
index 7b30e04..32562b7 100644 (file)
@@ -15,5 +15,5 @@
 # limitations under the License.
 
 import end
-class Object
+interface Object
 end
index f6d7424..b59ffa0 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
        fun ==(o: nullable Object): Bool do return self.is_same_instance(o)
        fun !=(o: nullable Object): Bool do return not (self == o)
        fun is_same_instance(other: nullable Object): Bool is intern
index 2fb2485..b94a007 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
        fun i_to_s(i: Int)
        do
                i.output
index 263d706..12636be 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
        fun output is abstract
 end
 
index 4a16599..1a75c8f 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
        fun i_to_s(i: Int)
        do
                i.output
index 76d0dd9..524b24e 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
index 4d352d1..1f84c4d 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
index 005b436..328396a 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class Int
index 717376e..3169e0d 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class A[E: Object]
index 23cd598..11fc8f7 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 
-class Object
+interface Object
        fun ==(o: nullable Object): Bool do return self.is_same_instance(o)
        fun !=(o: nullable Object): Bool do return not self.is_same_instance(o)
        fun is_same_instance(other: nullable Object): Bool is intern
index 71ca47a..bd24e7c 100644 (file)
@@ -14,7 +14,7 @@
 
 import end
 
-class Object
+interface Object
        fun ==(o: nullable Object): Bool do return self.is_same_instance(o)
        fun !=(o: nullable Object): Bool do return not self.is_same_instance(o)
        fun is_same_instance(other: nullable Object): Bool is intern
index a8766fe..b0f26a4 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import end
-class Object
+interface Object
        fun ==(o: nullable Object): Bool do return self.is_same_instance(o)
        fun !=(o: nullable Object): Bool do return not self == o
        fun is_same_instance(o: nullable Object): Bool is intern
index 30782b4..5c4da98 100644 (file)
@@ -15,5 +15,5 @@
 # limitations under the License.
 
 import kernel
-class Object[E: Object]
+interface Object[E: Object]
 end
index d4fc31c..21a6f39 100644 (file)
@@ -1,7 +1,7 @@
 
 import end#alt7#
 #alt7#import kernel
-class Object#alt7#
+interface Object#alt7#
 end#alt7#
 
 #alt6#class A
index e6b29d2..a96a09a 100644 (file)
@@ -16,7 +16,7 @@
 
 import end
 
-class Object
+interface Object
 end
 
 class A
index d474ea0..175e6fc 100644 (file)
@@ -18,7 +18,7 @@ module platform
 import end
 
 # Root of everything.
-class Object
+interface Object
        # Used for comparisons.
        type OTHER: nullable Object