diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-10-07 12:40:37 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-10-07 12:40:37 +0000 |
commit | 02e58d8f1c2ef6fa27d5baeee723ca2ed0a543ff (patch) | |
tree | cc6d211effb5febdae5383ddb458c94b28f4d5d7 /test/files/run/runtime.scala | |
parent | 5b0cf6f9f19e8ee0b6090525c215e73adb5836f3 (diff) | |
download | scala-02e58d8f1c2ef6fa27d5baeee723ca2ed0a543ff.tar.gz scala-02e58d8f1c2ef6fa27d5baeee723ca2ed0a543ff.tar.bz2 scala-02e58d8f1c2ef6fa27d5baeee723ca2ed0a543ff.zip |
[MSIL] Added object TestMain as an entry point...
[MSIL] Added object TestMain as an entry point on .NET
Diffstat (limited to 'test/files/run/runtime.scala')
-rw-r--r-- | test/files/run/runtime.scala | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/files/run/runtime.scala b/test/files/run/runtime.scala index 1a7141befa..e576cbc871 100644 --- a/test/files/run/runtime.scala +++ b/test/files/run/runtime.scala @@ -6,7 +6,16 @@ import java.lang.System; // to avoid name clash with .NET's library //############################################################################ -// Test 0 - Array Creation +// serves as an entry point with the MSIL backend + +object TestMain { + def main(args: Array[String]): Unit = { + Test.main(args); + } +} + +//############################################################################ +// Test 0 - Array creation object Test0Test { def println[A](xs: Array[A]): Unit = { @@ -101,6 +110,7 @@ object Test { val name: String = Thread.currentThread().getName(); System.out.print("Exception in thread \"" + name + "\" "); exception.printStackTrace(); + //Console.println(exception.StackTrace); // with -target:msil System.out.println(); errors = errors + 1; } |