scalacenter / scastie

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

Feature request: Support toying with Caprese #1075

Open scf37 opened 3 months ago

scf37 commented 3 months ago

This does not work in Scastie:

import language.experimental.captureChecking // this language import is only allowed at the toplevel

Maybe detect those special imports and rewrite snippet so they are moved to top level?

rochala commented 3 months ago

Hey, that would be perfect. The problem is I may not find time for this in the near future. For now, I recommend you to use non-worksheet mode, as it won't wrap your code into a worksheet wrapper.