diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-05-16 23:28:16 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-05-16 23:28:16 -0700 |
commit | ee365cccaf740d5ec353718556b010137f4cdd4d (patch) | |
tree | 6446ae35eaeb0c0bf020231fed30ec118b0c37e7 /test/files/run/t4625b.script | |
parent | 5bcefbe1889a1b8e1f9bac04090428eaaa7b2fd3 (diff) | |
download | scala-ee365cccaf740d5ec353718556b010137f4cdd4d.tar.gz scala-ee365cccaf740d5ec353718556b010137f4cdd4d.tar.bz2 scala-ee365cccaf740d5ec353718556b010137f4cdd4d.zip |
SI-4625 Permit arbitrary top-level in script
In an unwrapped script, where a `main` entry point is discovered
in a top-level object, retain all top-level classes.
Everything winds up in the default package.
Diffstat (limited to 'test/files/run/t4625b.script')
-rw-r--r-- | test/files/run/t4625b.script | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t4625b.script b/test/files/run/t4625b.script new file mode 100644 index 0000000000..f21a553dd1 --- /dev/null +++ b/test/files/run/t4625b.script @@ -0,0 +1,8 @@ + +trait X { def x = "Misc top-level detritus" } + +object Bumpkus + +object Main extends X with App { + println(x) +} |