summaryrefslogtreecommitdiff
path: root/test/files/pos/lub-from-hell.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/lub-from-hell.scala')
-rw-r--r--test/files/pos/lub-from-hell.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/lub-from-hell.scala b/test/files/pos/lub-from-hell.scala
new file mode 100644
index 0000000000..cb4b1733c7
--- /dev/null
+++ b/test/files/pos/lub-from-hell.scala
@@ -0,0 +1,6 @@
+class Test {
+ trait Tree
+ def foo(b: Boolean, buf: collection.mutable.ArrayBuffer[Any], acc: StringBuilder) = if (b) buf else acc
+}
+// This test case minimizes a case that failed to compile due to a bug in my work on
+// SI-5294. After refining my patches, it compiles again, as expected. \ No newline at end of file