diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 18:20:15 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 18:20:15 +0000 |
commit | 17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3 (patch) | |
tree | bb804b4038eb6d0dee58b77cea8bd2dcc6f42dc4 /test/files/run/imports.scala | |
parent | e70a1a24ef7a7b596a92e1853fd44e96f36ad245 (diff) | |
download | scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.tar.gz scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.tar.bz2 scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.zip |
Removed old scala tests from new Scala core mod...
Removed old scala tests from new Scala core module.
Diffstat (limited to 'test/files/run/imports.scala')
-rw-r--r-- | test/files/run/imports.scala | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/test/files/run/imports.scala b/test/files/run/imports.scala deleted file mode 100644 index d976478d8b..0000000000 --- a/test/files/run/imports.scala +++ /dev/null @@ -1,97 +0,0 @@ -//############################################################################ -// Import statements -//############################################################################ -// $Id$ - -//############################################################################ - -object checker { - def check(where: String, what: String, value: Any): Unit = { - Console.print("In " + where + ", " + what + ".toString() returns "); - Console.flush; - val string: String = if (value == null) "null" else value.toString(); - val test = if (string == where) "ok" else "KO"; - Console.println(string + " -> " + test); - Console.flush; - } -} - -import checker.check; - -//############################################################################ - -//import o_ico.v_ico; - -class C_ico() { - o_ico.v_ico = this; - import o_ico.v_ico; - override def toString(): String = "C_ico"; - def method: C_ico = v_ico; - val field: C_ico = v_ico; - - check("C_ico", "v_ico ", v_ico); - check("C_ico", "field ", field); - check("C_ico", "method", method); - Console.println; -} - -object o_ico { - var v_ico: C_ico = null; - new C_ico(); -} - -//############################################################################ - -object o_ioc { - var v_ioc: C_ioc = null; - new C_ioc(); -} - -import o_ioc.v_ioc; - - -class C_ioc() { - o_ioc.v_ioc = this; - override def toString(): String = "C_ioc"; - def method: C_ioc = v_ioc; - val field: C_ioc = v_ioc; - - check("C_ioc", "v_ioc ", v_ioc); - check("C_ioc", "field ", field); - check("C_ioc", "method", method); - Console.println; -} - -//############################################################################ - -object o_oic { - var v_oic: C_oic = null; - new C_oic(); -} - -import o_oic.v_oic; - -class C_oic() { - o_oic.v_oic = this; - override def toString(): String = "C_oic"; - def method: C_oic = v_oic; - val field: C_oic = v_oic; - - check("C_oic", "v_oic ", v_oic); - check("C_oic", "field ", field); - check("C_oic", "method", method); - Console.println; -} - -//############################################################################ - -object Test { - def main(args: Array[String]): Unit = { - o_ico; - o_ioc; - o_oic; - () - } -} - -//############################################################################ |