aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t7847
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t7847')
-rw-r--r--tests/untried/pos/t7847/A.scala5
-rw-r--r--tests/untried/pos/t7847/B.java10
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/pos/t7847/A.scala b/tests/untried/pos/t7847/A.scala
new file mode 100644
index 000000000..b6cce6ee7
--- /dev/null
+++ b/tests/untried/pos/t7847/A.scala
@@ -0,0 +1,5 @@
+case class Blah(a: Int)
+
+object Blah {
+ def apply2(a: Int) = apply(a)
+}
diff --git a/tests/untried/pos/t7847/B.java b/tests/untried/pos/t7847/B.java
new file mode 100644
index 000000000..c214f2dca
--- /dev/null
+++ b/tests/untried/pos/t7847/B.java
@@ -0,0 +1,10 @@
+public final class B {
+ void blah() {
+ Blah x = Blah.apply2(1);
+ Blah y = Blah.apply(1);
+ Blah z = Blah$.MODULE$.apply(1);
+
+ scala.Option un1 = Blah.unapply(null);
+ scala.Option un2 = Blah$.MODULE$.unapply(null);
+ }
+}