summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-09-08 14:11:44 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-09-08 14:11:44 +1000
commit732d2153b1470a45c0b2d7bd2966ff47c52ff840 (patch)
tree4c7ca33753d44b158cdbede0051b28b86957ede1 /test/files/pos
parent77a728eddc21d7d47828dab03d03afeafc081a81 (diff)
parentdefb1465909c3f740871a56973c32b276f775b91 (diff)
downloadscala-732d2153b1470a45c0b2d7bd2966ff47c52ff840.tar.gz
scala-732d2153b1470a45c0b2d7bd2966ff47c52ff840.tar.bz2
scala-732d2153b1470a45c0b2d7bd2966ff47c52ff840.zip
Merge pull request #4671 from lrytz/t9375-easy
SI-9375 add synthetic readResolve only for static modules
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t6666d.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t6666d.scala b/test/files/pos/t6666d.scala
new file mode 100644
index 0000000000..49a688f91b
--- /dev/null
+++ b/test/files/pos/t6666d.scala
@@ -0,0 +1,18 @@
+
+import scala.collection.immutable.TreeMap
+import scala.math.Ordering
+
+class Test[K](param:TreeMap[K,Int]){
+ def this() = this({
+ implicit object TreeOrd extends Ordering[K](){
+ def compare(a: K, b: K) = {
+ -1
+ }
+ }
+ new TreeMap[K, Int]()
+ })
+}
+
+object Test extends App {
+ new Test()
+}