summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Clerc <xavier.clerc@inria.fr>2010-05-03 09:36:13 +0000
committerXavier Clerc <xavier.clerc@inria.fr>2010-05-03 09:36:13 +0000
commit5dad1ef1618c32af4ecef25c75e3055d91584ac9 (patch)
tree96bf47440c508a75a74c77b92df0cab3dc2e5901
parentb443ee91ff92ffcbb21d0dce9b9cc35f32cb466e (diff)
The warning related to method overriding is now disabled.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10349 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--testsuite/tests/typing-poly/poly.ml.principal.reference19
-rw-r--r--testsuite/tests/typing-poly/poly.ml.reference19
2 files changed, 4 insertions, 34 deletions
diff --git a/testsuite/tests/typing-poly/poly.ml.principal.reference b/testsuite/tests/typing-poly/poly.ml.principal.reference
index 9187c7122..8b1b45a66 100644
--- a/testsuite/tests/typing-poly/poly.ml.principal.reference
+++ b/testsuite/tests/typing-poly/poly.ml.principal.reference
@@ -218,23 +218,8 @@ val f4 : id -> int * bool = <fun>
end
# val id : 'a -> 'a = <fun>
# class c : object method id : 'a -> 'a end
-# # class c' = object
- inherit c
- method id = id
- end
- ;;
-Warning 7: the method id is overridden.
-class c' : object method id : 'a -> 'a end
-# # class d = object
- inherit c as c
- val mutable count = 0
- method id x = count <- count+1; x
- method count = count
- method old : 'a. 'a -> 'a = c#id
- end
- ;;
-Warning 7: the method id is overridden.
-class d :
+# class c' : object method id : 'a -> 'a end
+# class d :
object
val mutable count : int
method count : int
diff --git a/testsuite/tests/typing-poly/poly.ml.reference b/testsuite/tests/typing-poly/poly.ml.reference
index 48b47f3c8..e599b19c1 100644
--- a/testsuite/tests/typing-poly/poly.ml.reference
+++ b/testsuite/tests/typing-poly/poly.ml.reference
@@ -204,23 +204,8 @@ and b : object method id : 'a -> 'a end
end
# val id : 'a -> 'a = <fun>
# class c : object method id : 'a -> 'a end
-# # class c' = object
- inherit c
- method id = id
- end
- ;;
-Warning 7: the method id is overridden.
-class c' : object method id : 'a -> 'a end
-# # class d = object
- inherit c as c
- val mutable count = 0
- method id x = count <- count+1; x
- method count = count
- method old : 'a. 'a -> 'a = c#id
- end
- ;;
-Warning 7: the method id is overridden.
-class d :
+# class c' : object method id : 'a -> 'a end
+# class d :
object
val mutable count : int
method count : int