diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2015-09-18 10:33:28 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-09-18 10:33:28 +0200 |
commit | 133e7d053cc62ce0703d611e34fa750175cc3b48 (patch) | |
tree | 918e2dd3d8523f41ad8b1da4cf09b5580a13bd25 /test/files/pos/t6666d.scala | |
parent | 91cd6d1a3db422c576f15eceb0715c572ec44081 (diff) | |
parent | 76269ca7a63848aee1f141da75be8ca436bf9e6c (diff) | |
download | scala-133e7d053cc62ce0703d611e34fa750175cc3b48.tar.gz scala-133e7d053cc62ce0703d611e34fa750175cc3b48.tar.bz2 scala-133e7d053cc62ce0703d611e34fa750175cc3b48.zip |
Merge remote-tracking branch 'upstream/2.12.x' into opt/heuristics
Diffstat (limited to 'test/files/pos/t6666d.scala')
-rw-r--r-- | test/files/pos/t6666d.scala | 18 |
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() +} |