aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0031.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:13:04 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:13:04 +0200
commit6a5a6cca84221b90b14dbac8730cafef7f60e410 (patch)
tree26ed77e2406a698ad86e2a381589d1d7daebb5a3 /tests/pos/t0031.scala
parent9602523e0b6b89b73f77ac45f9a5b58060fcd6cf (diff)
downloaddotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.gz
dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.bz2
dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.zip
Replace tabs with 4 spaces in Dotty tests.
Diffstat (limited to 'tests/pos/t0031.scala')
-rw-r--r--tests/pos/t0031.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/pos/t0031.scala b/tests/pos/t0031.scala
index d4050c818..6070a4683 100644
--- a/tests/pos/t0031.scala
+++ b/tests/pos/t0031.scala
@@ -7,12 +7,12 @@ object Main {
def require[a](precondition: => Boolean)(command: => a): Ensure[a] =
if (precondition)
new Ensure[a] {
- def ensure(postcondition: a => Boolean): a = {
- val result = command;
- if (postcondition(result)) result
- else sys.error("Assertion error")
+ def ensure(postcondition: a => Boolean): a = {
+ val result = command;
+ if (postcondition(result)) result
+ else sys.error("Assertion error")
}
- }
+ }
else
sys.error("Assertion error");
@@ -22,7 +22,7 @@ object Main {
} ensure (result => s contains result);
def main(args: Array[String]) = {
- val s = List(1, 2);
+ val s = List(1, 2);
Console.println(arb(s))
}