--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class A
+ super Array[Int]
+end
+
+class B
+ super Array[Char]
+end
+
+class C
+ super A
+ super B
+end
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class A[E]
+ super Array[E]
+end
+
+class B[F]
+ super List[F]
+end
+
+class C
+ super A[Int]
+ super B[Char]
+end
--- /dev/null
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class A[E, F]
+ super Array[E]
+ super List[F]
+end
--- /dev/null
+error_inh_clash.nit:17,7: Error: Incompatibles ancestors for A: Array[Int], Array[Char]
--- /dev/null
+error_inh_clash2.nit:23,7: Error: Incompatibles ancestors for C: Array[Char], Array[Int]
--- /dev/null
+Fatal error: Incompatibles ancestors for C: Array[Int], Array[Char]
--- /dev/null
+error_inh_clash3.nit:23,7: Error: Incompatibles ancestors for C: Sequence[Char], Sequence[Int]
+error_inh_clash3.nit:23,7: Error: Incompatibles ancestors for C: SequenceRead[Char], SequenceRead[Int]
--- /dev/null
+Fatal error: Incompatibles ancestors for C: SequenceRead[Int], SequenceRead[Char]
--- /dev/null
+error_inh_clash4.nit:15,7: Error: Incompatibles ancestors for A: Sequence[A#1], Sequence[A#0]
+error_inh_clash4.nit:15,7: Error: Incompatibles ancestors for A: SequenceRead[A#1], SequenceRead[A#0]
--- /dev/null
+Runtime error: Cast failed (metamodel/type_formal.nit:39)