diff options
author | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-07-11 13:02:40 +0000 |
commit | ca9f4fbb7b1212cfcde866ee95957afc6d157943 (patch) | |
tree | 20ef511d9ccb659a8d876477120994bea680e1d2 /test/files/run/Course-2002-08.scala | |
parent | 319090d57b6736033c0e635da83ff571df5bd1d0 (diff) | |
download | scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.gz scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.tar.bz2 scala-ca9f4fbb7b1212cfcde866ee95957afc6d157943.zip |
*** empty log message ***
Diffstat (limited to 'test/files/run/Course-2002-08.scala')
-rw-r--r-- | test/files/run/Course-2002-08.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/Course-2002-08.scala b/test/files/run/Course-2002-08.scala index b821caa140..f94b42ebc0 100644 --- a/test/files/run/Course-2002-08.scala +++ b/test/files/run/Course-2002-08.scala @@ -89,16 +89,16 @@ object M1 { object M2 { - def while(def condition: Boolean)(def command: Unit): Unit = + def While(def condition: Boolean)(def command: Unit): Unit = if (condition) { - command; while(condition)(command) + command; While(condition)(command) } else { } def power (x: Double, exp: Int): Double = { var r = 1.0; var i = exp; - while (i > 0) { r = r * x; i = i - 1 } + While (i > 0) { r = r * x; i = i - 1 } r } |