aboutsummaryrefslogtreecommitdiff
path: root/tests/run/matchemptyarray.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/matchemptyarray.scala')
-rw-r--r--tests/run/matchemptyarray.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run/matchemptyarray.scala b/tests/run/matchemptyarray.scala
new file mode 100644
index 000000000..fa56c0ed3
--- /dev/null
+++ b/tests/run/matchemptyarray.scala
@@ -0,0 +1,5 @@
+object Test extends dotty.runtime.LegacyApp{
+ Array[String]() match {
+ case x@Array() => println(x.deep.toString());
+ }
+}