aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3411.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-01-27 12:46:48 +0100
committerMartin Odersky <odersky@gmail.com>2015-02-07 17:31:53 +0100
commit1f8b5691dabaae336c3c3f568b303eb24e783494 (patch)
tree7546b2148b5863e2e0070122ffc6d67eacf9edf4 /tests/pos/t3411.scala
parent4320e20ff5f3126940f0ecad1dd53573cf03562b (diff)
downloaddotty-1f8b5691dabaae336c3c3f568b303eb24e783494.tar.gz
dotty-1f8b5691dabaae336c3c3f568b303eb24e783494.tar.bz2
dotty-1f8b5691dabaae336c3c3f568b303eb24e783494.zip
Test reorg
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` => }
+ }
+}