aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t3835.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t3835.scala')
-rw-r--r--tests/run/t3835.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/t3835.scala b/tests/run/t3835.scala
new file mode 100644
index 000000000..7863916f4
--- /dev/null
+++ b/tests/run/t3835.scala
@@ -0,0 +1,9 @@
+object Test extends dotty.runtime.LegacyApp {
+ // work around optimizer bug SI-5672 -- generates wrong bytecode for switches in arguments
+ // virtpatmat happily emits a switch for a one-case switch
+ // this is not the focus of this test, hence the temporary workaround
+ def a = (1, 2, 3) match { case (r, \u03b8, \u03c6) => r + \u03b8 + \u03c6 }
+ println(a)
+ def b = (1 match { case \u00e9 => \u00e9 })
+ println(b)
+}