From 6ed49d8b851f8f0138db46157cd09f27b217ee1f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 19 Feb 2009 21:28:40 +0000 Subject: 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. --- test/files/run/bug363.check | 1 + test/files/run/bug363.scala | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 test/files/run/bug363.check create mode 100644 test/files/run/bug363.scala (limited to 'test/files/run') 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 -- cgit v1.2.3