summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-12-03 22:20:13 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-12-03 22:20:13 +1000
commita1ee57da54eff4fe372e304fb5695941a70211c6 (patch)
treefa7cf81acff51b61243383262883309e090fd81e /test/files
parent56b9f068f144dca67685dc884420ca67251df4c4 (diff)
parent081b82fdba37734f28c00417bfad12171a096710 (diff)
downloadscala-a1ee57da54eff4fe372e304fb5695941a70211c6.tar.gz
scala-a1ee57da54eff4fe372e304fb5695941a70211c6.tar.bz2
scala-a1ee57da54eff4fe372e304fb5695941a70211c6.zip
Merge pull request #4178 from retronym/ticket/9018
SI-9018 Fix regression: cycle in LUBs
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t9018.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t9018.scala b/test/files/pos/t9018.scala
new file mode 100644
index 0000000000..7fb4cf21b3
--- /dev/null
+++ b/test/files/pos/t9018.scala
@@ -0,0 +1,16 @@
+object TestObject {
+
+ def m(i: Int): AnyRef = i match {
+ case 0 => new C()
+ case 1 => Some(E.A).getOrElse("")
+ }
+
+ class C extends Ordered[C] {
+ def compare(that: C): Int = ???
+ }
+
+ object E extends Enumeration {
+ type CharacterClass = Value
+ val A = Value
+ }
+}