aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3411.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t3411.scala')
-rw-r--r--tests/pos/t3411.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/t3411.scala b/tests/pos/t3411.scala
new file mode 100644
index 000000000..6d46be4e4
--- /dev/null
+++ b/tests/pos/t3411.scala
@@ -0,0 +1,8 @@
+object A {
+ def g(c: PartialFunction[Any,Unit]): Unit = {}
+
+ def f: Unit = {
+ lazy val x = 0
+ g { case `x` => }
+ }
+}