aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/nameddefaults.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:58:43 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:58:43 +0200
commit4d1c9e2212d8d462ad8664904491c378766a65fa (patch)
treef43b9c51d669a92be7cab4e5d70b10b3c90b7085 /tests/pos/nameddefaults.scala
parentafa630a78b4f2cd9bd799b5a0199b99548f18aaa (diff)
downloaddotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.gz
dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.bz2
dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.zip
Remove trailing spaces in Dotty tests.
Diffstat (limited to 'tests/pos/nameddefaults.scala')
-rw-r--r--tests/pos/nameddefaults.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/pos/nameddefaults.scala b/tests/pos/nameddefaults.scala
index 671f14a07..20a0eae47 100644
--- a/tests/pos/nameddefaults.scala
+++ b/tests/pos/nameddefaults.scala
@@ -1,7 +1,7 @@
object nameddefaults {
def foo(first: Int, second: Int = 2, third: Int = 3) = first + second
-
+
var x = 1
var y = 2
@@ -12,7 +12,7 @@ object nameddefaults {
foo(1)
// named and missing arguments
-
+
foo(first = 1, second = 3)
foo(second = 3, first = 1)
@@ -20,7 +20,7 @@ object nameddefaults {
foo(first = 2, third = 3)
foo(2, third = 3)
-
+
// same but with non-idempotent expressions
foo(first = x, second = y)
@@ -30,11 +30,11 @@ object nameddefaults {
foo(first = x, third = y)
foo(x, third = y)
-
+
// The same thing, but for classes
-
+
class C(first: Int, second: Int = 2, third: Int = 3) {}
-
+
new C(1, 2, 3)
new C(1, 2)
@@ -42,7 +42,7 @@ object nameddefaults {
new C(1)
// named and missing arguments
-
+
new C(first = 1, second = 3)
new C(second = 3, first = 1)
@@ -50,7 +50,7 @@ object nameddefaults {
new C(first = 2, third = 3)
new C(2, third = 3)
-
+
// same but with non-idempotent expressions
new C(first = x, second = y)