aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-07 20:36:11 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-07 20:36:11 +0100
commitf2d8f28b1eebfc52b61594bd6607faa581499f03 (patch)
tree21e4dd85bb63319c07b85593ce78a5afa0e5cd5e /tests
parent84cbb43bc3e4dc8399202763b371fda57ac3c072 (diff)
downloaddotty-f2d8f28b1eebfc52b61594bd6607faa581499f03.tar.gz
dotty-f2d8f28b1eebfc52b61594bd6607faa581499f03.tar.bz2
dotty-f2d8f28b1eebfc52b61594bd6607faa581499f03.zip
New subtype constraint maintenance algorithm.
Objective: Avoid cycles by detecting all cases where A <: B and B <: A and removing those cases by unifuing A and B. Cycles need to be avoided because they lead to deep subtype recursions.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/typers.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/typers.scala b/tests/pos/typers.scala
index c02bcda22..1626731bd 100644
--- a/tests/pos/typers.scala
+++ b/tests/pos/typers.scala
@@ -4,6 +4,11 @@ import annotation.{tailrec, switch}
import collection.mutable._
object typers {
+
+ val entries = Array("abc", "def")
+
+ for ((x, i) <- entries.zipWithIndex)
+ println(x)
object Eta {