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/shl/basic.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/shl/basic.scala')
-rw-r--r-- | test/files/shl/basic.scala | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/files/shl/basic.scala b/test/files/shl/basic.scala deleted file mode 100644 index 5d1264e901..0000000000 --- a/test/files/shl/basic.scala +++ /dev/null @@ -1,46 +0,0 @@ -//############################################################################ -// Basic Operations -//############################################################################ -// $Id$ - -() -false -'1' -2 -3l -4.0f -5.0d -null -"hello" -Nil -List(1,2,3) - -throw new Error("error") - -val x = 5; -x -y - -def fact(n: Int): Int = if (n == 1) 1 else n*fact(n - 1) -fac(5) -fact(5) - -def length[X](a: Int, ls: List[X]): Int = - if (ls.isEmpty) a else length(a + 1, ls.tail) -length(Nil) -length(0, Nil) -length(0, List(1,2,3,4,5)) - -class Point(x: Int, y: Int) { - def move(dx: Int, dy: Int): Point = new Point(x + dx, y + dy); - override def toString(): String = "Point(" + x + "," + y + ")"; -} -val p1 = new Point(3,7) -p1.move(7,3) - -"string".isInstanceOf[String] -"string".isInstanceOf[Int] -"string".asInstanceOf[String] -"string".asInstanceOf[Int] - -//############################################################################ |