- Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Compiler version
3.0.0
Minimized code
➜ snips scala oq.scala 2 0 ➜ snips ➜ snips scalac -version Scala compiler version 3.0.0 -- Copyright 2002-2021, LAMP/EPFL ➜ snips rm *.class *.tasty ➜ snips scala oq.scala 2 2Output
This should never happen:
➜ snips vi hi.scala ➜ snips cat hi.scala @main def test() = println("hello, world") ➜ snips scala hi.scala hello, world ➜ snips scalac hi.scala ➜ snips vi hi.scala ➜ snips scala hi.scala hello, world ➜ snips cat hi.scala @main def test() = println("goodbye, cruel world") ➜ snipsExpectation
Running a script or interactive REPL actually runs the source text.
This is a follow-up to #7635 which was improperly closed.
Noticed again at https://gitter.im/scala/scala?at=60a9b889850bfa2d3bdaae09
SethTisue and ysthakur