summaryrefslogtreecommitdiff
path: root/test/files/run/t4625c.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-05-17 00:00:52 -0700
committerSom Snytt <som.snytt@gmail.com>2016-05-17 00:00:52 -0700
commite753135f02a8177e809937e56fed5c054091691f (patch)
tree534ba911ccf61ae0f1db820e880cba06b44125c1 /test/files/run/t4625c.scala
parentee365cccaf740d5ec353718556b010137f4cdd4d (diff)
downloadscala-e753135f02a8177e809937e56fed5c054091691f.tar.gz
scala-e753135f02a8177e809937e56fed5c054091691f.tar.bz2
scala-e753135f02a8177e809937e56fed5c054091691f.zip
SI-4625 Warn when discarding script object
It's pretty confusing when your script object becomes a local and then nothing happens. Such as when you're writing a test and it takes forever to figure out what's going on.
Diffstat (limited to 'test/files/run/t4625c.scala')
-rw-r--r--test/files/run/t4625c.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t4625c.scala b/test/files/run/t4625c.scala
new file mode 100644
index 0000000000..44f6225220
--- /dev/null
+++ b/test/files/run/t4625c.scala
@@ -0,0 +1,7 @@
+
+import scala.tools.partest.ScriptTest
+
+object Test extends ScriptTest {
+ // must be called Main to get probing treatment in parser
+ override def testmain = "Main"
+}