aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/t6666d.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/t6666d.scala')
-rw-r--r--tests/untried/neg-with-implicits/t6666d.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/t6666d.scala b/tests/untried/neg-with-implicits/t6666d.scala
new file mode 100644
index 000000000..49a688f91
--- /dev/null
+++ b/tests/untried/neg-with-implicits/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()
+}