summaryrefslogtreecommitdiff
path: root/test/files/pos/hkrange.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-18 21:05:05 +0000
committerPaul Phillips <paulp@improving.org>2011-07-18 21:05:05 +0000
commit658ba1b4e6898df65119f9cb6488ed8908c399ef (patch)
treeb25a6f9ecf41b5896520ccc150a0a2e861960f40 /test/files/pos/hkrange.scala
parentb2a1ced1a720f1427ad573d8c7d26a4561626f88 (diff)
downloadscala-658ba1b4e6898df65119f9cb6488ed8908c399ef.tar.gz
scala-658ba1b4e6898df65119f9cb6488ed8908c399ef.tar.bz2
scala-658ba1b4e6898df65119f9cb6488ed8908c399ef.zip
Fixed adriaan's patch for type constructor infe...
Fixed adriaan's patch for type constructor inference. The problem with haranguing people in bars about bugs is that the fixes with which they provide you may be flawed. Fortunately moors has this novelist on retainer. Review by moors.
Diffstat (limited to 'test/files/pos/hkrange.scala')
-rw-r--r--test/files/pos/hkrange.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/hkrange.scala b/test/files/pos/hkrange.scala
new file mode 100644
index 0000000000..a6803230ed
--- /dev/null
+++ b/test/files/pos/hkrange.scala
@@ -0,0 +1,5 @@
+class A {
+ def f[CC[X] <: Traversable[X]](x: CC[Int]) = ()
+
+ f(1 to 5)
+}