diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-19 21:28:40 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-19 21:28:40 +0000 |
commit | 6ed49d8b851f8f0138db46157cd09f27b217ee1f (patch) | |
tree | 135ca611f175c57f3ae52df0eee74cba5017c987 /test/files/run | |
parent | feb773f602565c205534fc3fa9cee7ce25548786 (diff) | |
download | scala-6ed49d8b851f8f0138db46157cd09f27b217ee1f.tar.gz scala-6ed49d8b851f8f0138db46157cd09f27b217ee1f.tar.bz2 scala-6ed49d8b851f8f0138db46157cd09f27b217ee1f.zip |
Look for main method in companion object and ad...
Look for main method in companion object and add a static forwarder to
companion class if possible + test case; fixes bug #363.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug363.check | 1 | ||||
-rw-r--r-- | test/files/run/bug363.scala | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug363.check b/test/files/run/bug363.check new file mode 100644 index 0000000000..040b97c07a --- /dev/null +++ b/test/files/run/bug363.check @@ -0,0 +1 @@ +I love the smell of (Array[String])Unit in the morning. diff --git a/test/files/run/bug363.scala b/test/files/run/bug363.scala new file mode 100644 index 0000000000..104629016e --- /dev/null +++ b/test/files/run/bug363.scala @@ -0,0 +1,9 @@ +object Test { + def main(args: Array[String]) { + println("I love the smell of (Array[String])Unit in the morning.") + } +} + +class Test { + def kurtz() = "We must kill them. We must incinerate them." +}
\ No newline at end of file |