aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t4062.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t4062.scala')
-rw-r--r--tests/pos/t4062.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t4062.scala b/tests/pos/t4062.scala
new file mode 100644
index 000000000..63e05b739
--- /dev/null
+++ b/tests/pos/t4062.scala
@@ -0,0 +1,7 @@
+class A(val f : String)
+
+class B(a : Option[String], f : String) extends A(f) {
+ a match {
+ case Some(`f`) => print(f)
+ }
+}