aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-02-07 12:02:47 +1100
committerMartin Odersky <odersky@gmail.com>2017-02-07 12:02:47 +1100
commit8cf9d559eaec93577e16c053b5792f69bb66b06f (patch)
treef1d7b695e47ab32b6aae91a6c7e8d36971ceb971 /tests/pos
parent64332a794c05cbf21491eaf0bfdf4482a80b1b10 (diff)
downloaddotty-8cf9d559eaec93577e16c053b5792f69bb66b06f.tar.gz
dotty-8cf9d559eaec93577e16c053b5792f69bb66b06f.tar.bz2
dotty-8cf9d559eaec93577e16c053b5792f69bb66b06f.zip
Fix wildApprox function
f-bounded-case-class.scala exhibited a StackOverflow in wildApprox before the fixes. The problem was due to F-bounds. Note: wildApprox is performance critical. I ran timed-bootstrap-repeated a couple of times to verify that the changes did not affect runtimes in significant ways. We should also watch out for a slowdown in the benchmark tests.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/f-bounded-case-class.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pos/f-bounded-case-class.scala b/tests/pos/f-bounded-case-class.scala
new file mode 100644
index 000000000..82b8758b2
--- /dev/null
+++ b/tests/pos/f-bounded-case-class.scala
@@ -0,0 +1 @@
+case class Test[X <: List[Y], Y <: List[X]](x: X, y: Y)