scalacenter / scastie

An interactive playground for Scala
https://scastie.scala-lang.org
Apache License 2.0
433 stars 103 forks source link

top-level match expressions don't compile #1020

Open Bersier opened 8 months ago

Bersier commented 8 months ago

Describe the bug

Unlike for other types of expressions, Scastie doesn't seem to understand top-level match expressions.

Scastie snippet link

https://scastie.scala-lang.org/ZmTFsaD6Rwqx0uHZ7D1u4A

To Reproduce

  1. Write a top-level match expression in Scastie.

Expected behavior

Top-level match expressions to reduce as usual.

Screenshot ( Optional )

No response

Version

Scastie website

What browsers are you seeing the problem on?

No response

Relevant log output

No response